getGeoTopCity method
Implementation
Future<GeoPoiLocationResp?> getGeoTopCity(
{String range = 'world', int number = 10}) async {
Map param = {
"range": range.isEmpty ? 'world' : range,
"number": Platform.isAndroid ? number : number.toString()
};
Map? value = await _methodChannel.invokeMapMethod(
MethodConstants.GetGeoTopCity, param);
return value == null ? null : GeoPoiLocationResp.fromMap(value);
}