moveCamera method

void moveCamera(
  1. LatLng target, {
  2. int? zoom,
})

Implementation

void moveCamera(LatLng target, {int? zoom}) {
  getMapController().then((controller) async => controller.animateCamera(
      CameraUpdate.newCameraPosition(CameraPosition(
          target: target,
          zoom: zoom?.toDouble() ?? await controller.getZoomLevel()))));
}