ZoomlevelRange class

A min/max range of zoomlevels.

Constructors

ZoomlevelRange.new(int zoomlevelMin, int zoomlevelMax)
const
ZoomlevelRange.standard()
Standard zoomlevels are 0..25.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
zoomlevelMax int
final
zoomlevelMin int
final

Methods

ensureBounds(int zoomlevel) int
Returns a zoomlevel which lies guaranteed in the range of this zoomlevel range.
matches(int zoomlevel) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
restrictTo(ZoomlevelRange range) ZoomlevelRange
Returns a new ZoomlevelRange which is equal or smaller than the current one.
restrictToMax(int max) ZoomlevelRange
Returns a new ZoomlevelRange where the maximum zoomlevel is either the given zoomlevel or the existing one - whichever is smaller.
restrictToMin(int min) ZoomlevelRange
Returns a new ZoomlevelRange where the minimum zoomlevel is either the given zoomlevel or the existing one - whichever is bigger.
toString() String
A string representation of this object.
override
widenTo(ZoomlevelRange range) ZoomlevelRange

Operators

operator ==(Object other) bool
The equality operator.
override