withPosition method
Returns a new instance of MapCamera with the given center
/zoom
.
Implementation
MapCamera withPosition({
LatLng? center,
double? zoom,
}) =>
MapCamera(
crs: crs,
minZoom: minZoom,
maxZoom: maxZoom,
center: center ?? this.center,
zoom: zoom ?? this.zoom,
rotation: rotation,
nonRotatedSize: nonRotatedSize,
size: _cameraSize,
);