setZoom method

void setZoom(
  1. double zoom
)

Implementation

void setZoom(double zoom) {
  final current = state;
  setState(
    current.copyWith(zoom: zoom.clamp(current.minZoom, current.maxZoom)),
  );
}