centerOnPoint method

Future<void> centerOnPoint(
  1. LatLng point, {
  2. double? zoom,
  3. Curve? curve,
  4. String? customId,
})

Center the map on point with an optional zoom level.

If curve is not specified, the one specified in the constructor will be used.

Implementation

Future<void> centerOnPoint(
  LatLng point, {
  double? zoom,
  Curve? curve,
  String? customId,
}) {
  return animateTo(dest: point, zoom: zoom, curve: curve, customId: customId);
}