getGeoTopCity method

Future<GeoPoiLocationResp?> getGeoTopCity({
  1. String range = 'world',
  2. int number = 10,
})
inherited

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);
}