country 0.0.1 copy "country: ^0.0.1" to clipboard
country: ^0.0.1 copied to clipboard

retractedoutdated

Generated countries with country_gen

country #

Generated countries with country_gen. This plugin is using countries to generate dart class.

Getting Started #

Install #

Add the following lines in your pubspec.yaml file

dependencies:
  country: ^latest_version

pub package

API #

All country

void printAllCountry() {
  for (final country in Countries.values) {
    print(country);
  }
}
Short name by locale
String getCountryNameByLocale(Country country, Locale locale) =>
    country.isoShortNameByLanguage[const Locale('en', 'US').languageCode]!;
24
likes
0
points
6.62k
downloads

Publisher

unverified uploader

Weekly Downloads

Generated countries with country_gen

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on country