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, double? initialScale})

Properties

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

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 nonexistent 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
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