LokotroCountryService class
Service for fetching and managing country data
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 - Clear the cache
-
fetchCountries(
{bool forceRefresh = false}) → Future< List< LokotroCountry> > - Fetch available countries from API
-
getCountryByCode(
String countryCode) → Future< LokotroCountry?> - Get country by country code (e.g., "243")
-
getCountryById(
String countryId) → Future< LokotroCountry?> - Get country by ID
-
getDefaultCountry(
) → Future< LokotroCountry?> - Get default country (first one or DRC)
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → LokotroCountryService
-
Get singleton instance
no setter