dart_countries 1.0.0 copy "dart_countries: ^1.0.0" to clipboard
dart_countries: ^1.0.0 copied to clipboard

discontinued
outdated

Dart countries. The countries' information contain Phone number meta data, languages, currencies, iso code...

example/lib/main.dart

import 'package:dart_countries/dart_countries.dart';

void main(List<String> arguments) {
  final us = IsoCode.US;
  // final us = isoCodeConversionMap['US']; // alternatively

  // maps
  print(countriesName[us]);
  print(countriesNative[us]); // native name
  print(countriesContinent[us]);
  print(countriesCapital[us]);
  print(countriesCurrency[us]);
  print(countriesFlag[us]); // unicode flag wont display on windows yet
  print(countriesLanguages[us]);
  print(countriesDialcode[us]);
  print(countriesPhonenumberlengths[us]);
  print(countriesPhoneDescription[us]);

  // country class
  final allCountries = countries;
  allCountries.forEach((country) {
    if (country.currencyCode == 'USD') print(country.name);
  });
}
6
likes
140
pub points
85%
popularity

Publisher

unverified uploader

Dart countries. The countries' information contain Phone number meta data, languages, currencies, iso code...

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on dart_countries