Clamps the provided zoom to the range specified by minZoom and maxZoom, if set.
zoom
double clampZoom(double zoom) => zoom.clamp( minZoom ?? double.negativeInfinity, maxZoom ?? double.infinity, );