atlas_code_web 0.1.0 copy "atlas_code_web: ^0.1.0" to clipboard
atlas_code_web: ^0.1.0 copied to clipboard

Platformweb

Web implementation of the atlas_code plugin

example/main.dart

import 'package:atlas_code_web/atlas_code_web.dart';

/// This package is an endorsed implementation of the atlas_code plugin:
/// apps depend on atlas_code and this package is included automatically.
/// Direct use looks like this.
Future<void> main() async {
  AtlasCodeWeb.registerWith();
  final names = await AtlasCodeWeb().localizedCountryNames('pt');
  assert(names.isNotEmpty, 'OS locale data localizes the country names');
}