utils/utils library

Functions

getAllCities() Future<List<City>>
Get world wide cities list.
getAllCountries() Future<List<Country>>
Get world wide countries list.
getAllStates() Future<List<State>>
Get world wide states list.
getCountryCities(String countryCode) Future<List<City>>
Get the list of cities that belongs to a country by the country ISO CODE
getCountryFromCode(String countryCode) Future<Country?>
Get country from its ISO CODE
getStateByCode(String countryCode, String stateCode) Future<State?>
Get a state from its code and its belonging country code
getStateCities(String countryCode, String stateCode) Future<List<City>>
Get the list of states that belongs to a state by the state ISO CODE and the country ISO CODE
getStatesOfCountry(String countryCode) Future<List<State>>
Get the list of states that belongs to a country by the country ISO CODE