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

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) {
  // maps
  print(countriesName[IsoCode.US]);
  print(countriesNativeName[IsoCode.US]); // native name
  print(countriesContinent[IsoCode.US]);
  print(countriesCapital[IsoCode.US]);
  print(countriesCurrencyCode[IsoCode.US]);
  print(countriesFlag[IsoCode.US]); // unicode flag wont display on windows yet
  print(countriesLanguages[IsoCode.US]);
  print(countriesCountryCode[IsoCode.US]);

  // country class
  final allCountries = countries;
  allCountries.forEach((country) {
    if (country.currencyCode == 'USD') print(country.name);
  });
}
6
likes
160
points
8.99k
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on dart_countries