toLatLng method
Implementation
@override
Future<LatLng> toLatLng(Point screenLocation) async {
try {
final latLngMap =
await _channel.invokeMethod('map#toLatLng', <String, dynamic>{
'x': screenLocation.x,
'y': screenLocation.y,
});
return LatLng(latLngMap['latitude'], latLngMap['longitude']);
} on PlatformException catch (e) {
return Future.error(e);
}
}