PhotoViewScaleStateController class

A controller responsible only by scaleState.

Scale state is a common value with represents the step in which the PhotoView.scaleStateCycle is. This cycle is triggered by the "doubleTap" gesture.

Any change in its scaleState should animate the scale of image/content.

As it is a controller, whoever instantiates it, should dispose it afterwards.

The updates should be done via scaleState setter and the updated listened via outputScaleStateStream

Properties

hasChanged bool
Checks if its actual value is different than previousValue
no setter
hashCode int
The hash code for this object.
no setterinherited
isZooming bool
Check if is zoomedIn & zoomedOut
no setter
outputScaleStateStream Stream<PhotoViewScaleState>
The output for state/value updates
no setter
prevScaleState PhotoViewScaleState
The state value before the last change or the initial state if the state has not been changed.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleState PhotoViewScaleState
The actual state value
getter/setter pair

Methods

addIgnorableListener(VoidCallback callback) → void
Add a listener that will ignore updates made internally
dispose() → void
Closes streams and removes eventual listeners
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeIgnorableListener(VoidCallback callback) → void
Remove a listener that will ignore updates made internally
reset() → void
Resets the state to the initial value;
setInvisibly(PhotoViewScaleState newValue) → void
Nevermind this method :D, look away Seriously: It is used to change scale state without trigging updates on the []
toString() String
A string representation of this object.
inherited

Operators

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