clampZoom method

double clampZoom(
  1. double zoom
)

Clamps the provided zoom to the range specified by minZoom and maxZoom, if set.

Implementation

double clampZoom(double zoom) => zoom.clamp(
      minZoom ?? double.negativeInfinity,
      maxZoom ?? double.infinity,
    );