MethodChannelGeodbFlutter class
An implementation of GeodbFlutterPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- GeodbFlutterPlatform
- MethodChannelGeodbFlutter
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
findCitiesBySubstring(
String substring) → Future< List< CityResult> > -
Search for cities by substring
override
-
findCountriesBySubstring(
String substring) → Future< List< CityResult> > -
Search for countries by substring
override
-
findCountryByCode(
String code) → Future< CityResult?> -
Find a country by its ISO2 code
override
-
findInRadius(
{required double lat, required double lng, required double radiusKm}) → Future< List< CityResult> > -
Find cities within a radius
override
-
findNearest(
{required double lat, required double lng, required int count}) → Future< List< CityResult> > -
Find nearest cities to a given location
override
-
findStatesBySubstring(
String substring) → Future< List< CityResult> > -
Search for states by substring
override
-
getCountryCount(
) → Future< int> -
Get the number of countries in the database
override
-
getPlatformVersion(
) → Future< String?> -
Get platform version (for testing)
override
-
getStats(
) → Future< DbStats> -
Get database statistics
override
-
initialize(
) → Future< void> -
Initialize the GeoDB database
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
smartSearch(
String query) → Future< List< CityResult> > -
Smart search - searches across cities, states, and countries
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited