dart_countries 2.1.0 dart_countries: ^2.1.0 copied to clipboard
A set of informations about countries. Contains various maps and isoCodes.
dart_countries #
A set of informations about countries. Contains various maps and isoCodes.
Maps #
You can use the maps to only import the information that you need
- countriesName['US']
- countriesNative['FR'] // native name
- countriesContinent['ES']
- countriesCapital['FR']
- countriesCurrencyCode['US']
- countriesFlag['US'] // unicode flag wont display on windows yet
- countriesLanguages['US']
- countriesDialcode['FR']
Country class #
Alternatively you can use the country class that contains all the info (less tree shaking).
countries.forEach((country) {
if (country.currencyCode == 'USD') print(country.name);
});
print(Country(IsoCode.US).currencyCode);