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...

dart_countries #

Dart const countries maps containing information relative to a country.

Maps #

You can use the maps to only import the information that you need

  • countriesName[IsoCode.US]
  • countriesNative[IsoCode.US] // native name
  • countriesContinent[IsoCode.US]
  • countriesCapital[IsoCode.US]
  • countriesCurrency[IsoCode.US]
  • countriesFlag[IsoCode.US] // unicode flag wont display on windows yet
  • countriesLanguages[IsoCode.US]
  • countriesDialcode[IsoCode.US]
  • countriesPhonenumberlengths[IsoCode.US]
  • countriesPhoneDescription[IsoCode.US]

Country class #

Alternatively you can use the country class that contains all the info.

  countries.forEach((country) {
    if (country.currencyCode == 'USD') print(country.name);
  });

  print(Country(IsoCode.US).currencyCode);

6
likes
120
pub points
86%
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