ZoomController class abstract

An abstract zoom controller.

Implementers

Constructors

ZoomController({double zoomCoefficient = 0.8, double? minZoom, double? maxZoom})
Creates a zoom controller instance.

Properties

contentOffset double
For maintain the position of the pinch focal point position (vertical)
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
maxZoom double
The maximum zoom factor.
final
minZoom double
The minimum zoom factor.
final
previousZoomFactor double
The previous zoom factor.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double
Returns the current scale.
no setter
zoomCoefficient double
The zoom coefficient (<= 0 to disable).
final
zoomFactor double
Returns the current zoom factor.
getter/setter pair

Methods

addListener(ZoomControllerListener listener) → void
Adds a listener.
calculateZoomFactor(double scale) double
Calculates a zoom factor according to the specified scale.
changeZoomFactor(double zoomFactor, {bool notify = true, ScaleUpdateDetails? details}) → void
Changes the current zoom factor.
dispose() → void
Disposes this controller if enabled. You should not use it anymore after having called this method.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeListener(ZoomControllerListener listener) → void
Removes a listener.
scaleStart(ScaleStartDetails details) → void
Should be called when the scale operation start.
scaleUpdate(ScaleUpdateDetails details) → void
Should be called when the scale operation has an update.
toString() String
A string representation of this object.
inherited

Operators

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