CountryProvider class
Methods
-
getAllCountries({CountryFilter? filter})
→ Future<List<Country>>
-
Get information about countries
-
getCountriesByContinent(String continentName, {CountryFilter? filter})
→ Future<List<Country>>
-
Search by continent:
Africa
, Americas
, Asia
, Europe
, Oceania
.
-
getCountriesByLanguageCode(List<String> languageCode, {CountryFilter? filter})
→ Future<List<Country>>
-
Search by ISO 639-1 language code:
jpn
, en
, hin
, ru
,
-
getCountriesByListOfCodes(List<String> codes, {CountryFilter? filter})
→ Future<List<Country>>
-
Search by list of ISO 3166-1 2-letter or 3-letter country codes:
["Ind", "col", "ru"]
-
getCountriesByName(String name, {CountryFilter? filter})
→ Future<List<Country>?>
-
Search by country name
-
getCountryByCallingCode(int callingCode, {CountryFilter? filter})
→ Future<List<Country>>
-
Search by calling code:
91
, 61
, 55
, 855
, 81
-
getCountryByCapitalCity(String capitalName, {CountryFilter? filter})
→ Future<List<Country>>
-
Search by capital city:
Tokyo
, Rome
, Bankok
, London
, Kampla
-
getCountryByCode(String code, {CountryFilter? filter})
→ Future<Country>
-
Search by list of ISO 3166-1 2-letter or 3-letter country codes:
Ind
, Col
, ru
-
getCountryByCurrencyCode(String currencyCode, {CountryFilter? filter})
→ Future<List<Country>>
-
Search by ISO 4217 currency code:
Inr
, Aud
, Bmd
, Usd
, Eur
, Gbp
-
getCountryByFullname(String name, {CountryFilter? filter})
→ Future<Country>
-
Search by country full name:
India
, Cambodia
, Canada
-
getcountryByRegionalBloc(String regiaonBlocName, {CountryFilter? filter})
→ Future<List<Country>>
-
Search by regional bloc:
EU
, EFTA
, CARICOM
, AU
, USAN
, EEU
, AL
, ASEAN
, CAIS
, CEFTA
, NAFTA
, SAARC
.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited