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

Constructors

PhotoViewScaleStateController()

Properties

hasChanged → bool
Checks if its actual value is different than previousValue
read-only
hashCode → int
The hash code for this object. [...]
read-only, inherited
isZooming → bool
Check if is zoomedIn & zoomedOut
read-only
outputScaleStateStream → Stream<PhotoViewScaleState>
The output for state/value updates
read-only
prevScaleState PhotoViewScaleState
The state value before the last change or the initial state if the state has not been changed.
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
scaleState PhotoViewScaleState
The actual state value
read / write

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 non-existent 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
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator. [...]
inherited