moveCamera method

void moveCamera(
  1. LatLng position
)

Moves the camera to position.

Implementation

void moveCamera(
  LatLng position,
) {
  if (mapController == null) return;
  mapController!.moveCamera(CameraUpdate.newCameraPosition(
      CameraPosition(target: position, zoom: 15)));
}