dart_countries 2.1.0 copy "dart_countries: ^2.1.0" to clipboard
dart_countries: ^2.1.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) {
  // 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
140
pub points
85%
popularity

Publisher

unverified uploader

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