DayViewController class

Allows to control some parameters of a day view.

Inheritance

Constructors

DayViewController({double zoomCoefficient = 0.8, double? minZoom, double? maxZoom, dynamic onDisposed(DayViewController controller)?})
Creates a new day view controller instance.

Properties

contentOffset double
For maintain the position of the pinch focal point position (vertical)
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
maxZoom double
The maximum zoom factor.
finalinherited
minZoom double
The minimum zoom factor.
finalinherited
onDisposed → (dynamic Function(DayViewController controller)?)
Called when this controller has been disposed.
final
previousZoomFactor double
The previous zoom factor.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double
Returns the current scale.
no setterinherited
zoomCoefficient double
The zoom coefficient (<= 0 to disable).
finalinherited
zoomFactor double
Returns the current zoom factor.
getter/setter pairinherited

Methods

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

Operators

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