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

discontinued
outdated

A set of informations about countries. Contains various maps and isoCodes.

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(countriesNativeName[us]); // native name
  print(countriesContinent[us]);
  print(countriesCapital[us]);
  print(countriesCurrencyCode[us]);
  print(countriesFlag[us]); // unicode flag wont display on windows yet
  print(countriesLanguages[us]);
  print(countriesDialCode[us]);

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

Publisher

unverified uploader

A set of informations about countries. Contains various maps and isoCodes.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on dart_countries