withOptions method
Returns a new instance of MapCamera with the given options
.
Implementation
MapCamera withOptions(MapOptions options) {
if (options.crs == crs &&
options.minZoom == minZoom &&
options.maxZoom == maxZoom) {
return this;
}
return MapCamera(
crs: options.crs,
minZoom: options.minZoom,
maxZoom: options.maxZoom,
center: center,
zoom: zoom,
rotation: rotation,
nonRotatedSize: nonRotatedSize,
size: _cameraSize,
);
}