withRotation method
Returns a new instance of MapCamera with the given rotation
.
Implementation
MapCamera withRotation(double rotation) {
if (rotation == this.rotation) return this;
return MapCamera(
crs: crs,
center: center,
zoom: zoom,
nonRotatedSize: nonRotatedSize,
rotation: rotation,
minZoom: minZoom,
maxZoom: maxZoom,
);
}