MapCamera constructor

MapCamera({
  1. required Crs crs,
  2. required LatLng center,
  3. required double zoom,
  4. required double rotation,
  5. required Point<double> nonRotatedSize,
  6. double? minZoom,
  7. double? maxZoom,
  8. Point<double>? size,
  9. Bounds<double>? pixelBounds,
  10. LatLngBounds? bounds,
  11. Point<int>? pixelOrigin,
})

Create an instance of MapCamera. The pixelOrigin, bounds, and pixelBounds may be set if they are known already. Otherwise if left null they will be calculated lazily when they are used.

Implementation

MapCamera({
  required this.crs,
  required this.center,
  required this.zoom,
  required this.rotation,
  required this.nonRotatedSize,
  this.minZoom,
  this.maxZoom,
  Point<double>? size,
  Bounds<double>? pixelBounds,
  LatLngBounds? bounds,
  Point<int>? pixelOrigin,
})  : _cameraSize = size,
      _pixelBounds = pixelBounds,
      _bounds = bounds,
      _pixelOrigin = pixelOrigin;