toLatLng method

  1. @override
Future<LatLng> toLatLng(
  1. Point<num> screenLocation
)
override

Implementation

@override
Future<LatLng> toLatLng(Point screenLocation) async {
  var lngLat =
      _map.unproject(mapbox.Point(screenLocation.x, screenLocation.y));
  return LatLng(lngLat.lat as double, lngLat.lng as double);
}