MapCamera constructor
MapCamera({})
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,
Size? size,
Rect? pixelBounds,
LatLngBounds? bounds,
Offset? pixelOrigin,
}) : _cameraSize = size,
_pixelBounds = pixelBounds,
_bounds = bounds,
_pixelOrigin = pixelOrigin,
assert(
zoom.isFinite,
'Camera `zoom` must be finite (and usually positive).\n'
'(This may occur if the map tried to fit to a zero-area bounds, such '
'as a bounds defined by only a single point.)',
);