locate method

  1. @override
Future<LatLng?> locate({
  1. bool automove = false,
  2. double toZoom = 17.0,
})
override

Find current LatLng user location

automove is the map need to move automatically to current user location. Default false toZoom target zoom level when automove is set to true

Implementation

@override
Future<LatLng?> locate({bool automove = false, double toZoom = 17.0}) async {
  return await map?.locate(automove, toZoom);
}