callReverseGeocode method

Future<ReverseGeocodeResponse?> callReverseGeocode()

Implementation

Future<ReverseGeocodeResponse?> callReverseGeocode() async {
  try {
    String? result = await restApi.revGeocode(toJson());
    return result != null
        ? ReverseGeocodeResponse.fromMap(json.decode(result))
        : null;
  } on PlatformException catch (e) {
    return Future.error(e);
  }
}