toLatLng method

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

Implementation

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