SagaMapZoomConfig class
Bounds for user-driven pinch zoom.
Pass one to SagaInfiniteMapView.zoomConfig to enable pinch zoom; leaving
it null keeps the map at a fixed scale.
Constructors
- SagaMapZoomConfig({double min = 0.6, double max = 2.5, double initial = 1.0})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- initial → double
-
Zoom the map starts at.
final
- max → double
-
Most zoomed in the user may go.
final
- min → double
-
Most zoomed out the user may go. Below
1the map shows more levels.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clamp(
double zoom) → double -
Clamps
zoominto this config's range. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override