PhotoViewController class

The default implementation of PhotoViewControllerBase.

Containing a ValueNotifier it stores the state in the value field and streams updates via outputStateStream.

For details of fields and methods, check PhotoViewControllerBase.

Implemented types

Constructors

PhotoViewController({Offset initialPosition: Offset.zero, double initialRotation: 0.0})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
initial PhotoViewControllerValue
read / write
outputStateStream Stream<PhotoViewControllerValue>
The output for state/value updates. Usually a broadcast Stream
read-only, override
position Offset
The position of the image in the screen given its offset after pan gestures.
read / write, override
prevValue PhotoViewControllerValue
The state value before the last change or the initial state if the state has not been changed.
read / write, override
rotation double
The rotation factor to transform the child (image or a customChild).
read / write, override
rotationFocusPoint Offset
The center of the rotation transformation. It is a coordinate referring to the absolute dimensions of the image.
read / write, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scale double
The scale factor to transform the child (image or a customChild).
read / write, override
value PhotoViewControllerValue
The actual state value
read / write, override

Methods

addIgnorableListener(VoidCallback callback) → void
Add a listener that will ignore updates made internally [...]
override
dispose() → void
Closes streams and removes eventual listeners.
override
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 [...]
override
reset() → void
Resets the state to the initial value;
override
setScaleInvisibly(double scale) → void
Nevermind this method :D, look away
override
toString() String
Returns a string representation of this object.
inherited
updateMultiple({Offset position, double scale, double rotation, Offset rotationFocusPoint}) → void
Update multiple fields of the state with only one update streamed.
override

Operators

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