LocationService class

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearCache() → void
getCitiesByStateId(String stateId) Future<List<CityModel>>
getCityById(String id) Future<CityModel?>
getCountryById(String id) Future<CountryModel?>
getStateById(String id) Future<StateModel?>
getStatesByCountryId(String countryId) Future<List<StateModel>>
loadCities({String assetPath = 'packages/location_picker/assets/city.json'}) Future<List<CityModel>>
loadCountries({String assetPath = 'packages/location_picker/assets/country.json'}) Future<List<CountryModel>>
loadStates({String assetPath = 'packages/location_picker/assets/state.json'}) Future<List<StateModel>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
searchCities(String query, String? stateId) List<CityModel>
searchCountries(String query) List<CountryModel>
searchStates(String query, String? countryId) List<StateModel>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance LocationService
no setter