MinMaxZoomPreference constructor

const MinMaxZoomPreference(
  1. double? minZoom,
  2. double? maxZoom
)

Creates a immutable representation of the preferred minimum and maximum zoom values for the map camera.

AssertionError will be thrown if minZoom > maxZoom.

Implementation

const MinMaxZoomPreference(this.minZoom, this.maxZoom)
    : assert(minZoom == null || maxZoom == null || minZoom <= maxZoom);