CameraFit.bounds constructor

const CameraFit.bounds({
  1. required LatLngBounds bounds,
  2. EdgeInsets padding,
  3. double? maxZoom,
  4. double minZoom,
  5. bool forceIntegerZoomLevel,
})

Fits the bounds inside the camera

For information about available options, see the documentation on the appropriate properties.

Implementation

const factory CameraFit.bounds({
  required LatLngBounds bounds,
  EdgeInsets padding,
  double? maxZoom,
  double minZoom,
  bool forceIntegerZoomLevel,
}) = FitBounds._;