UserTransform class

Image-space user transform: pan offset, scale, rotate, flip-X. Composes into a Matrix4 applied during paint and during export. Implements the + - * operators so Animator can tween between snapshots.

Mixed-in types
Available extensions

Constructors

UserTransform()

Properties

activeRotateZ ↔ double
Rotation of the gesture in flight, on top of rotateZ.
getter/setter pair
activeScale ↔ double
Zoom of the gesture in flight, on top of scale.
getter/setter pair
disposed → bool
Whether dispose has already run.
no setterinherited
flip → bool
Whether the image is mirrored.
no setter
flipX ↔ double
Horizontal scale sign: -1 mirrors.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
hasListeners → bool
Whether there is at least one active listener.
no setterinherited
matrix → Matrix4
Maps a point through the rotation, then the zoom with its flip, then the pan.
no setter
offset ↔ Vector3
Pan, in image pixels.
getter/setter pair
rotateZ ↔ double
Committed rotation, in radians.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scale ↔ double
Committed zoom.
getter/setter pair
totalRotate → double
Committed plus in-flight rotation.
no setter
totalScale → double
Committed times in-flight zoom.
no setter

Methods

addDispose(VoidCallback callback) → void
Registers a disposal callback. Ignored if already disposed.
inherited
addListener(VoidCallback listener) → void
Register a closure to be called when the object notifies its listeners.
inherited
clone() → UserTransform
A copy that shares nothing with this transform.
dispose() → void
Releases whatever this object holds. Calling it twice is an error.
inherited
disposeBy(Dispose disposer) → void

Available on Disposable, provided by the DisposableDisposerExtension extension

Adds this object's dispose to another Dispose collector.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Notifies all registered listeners.
override
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that the object notifies.
inherited
subscribe(VoidCallback callback) → VoidCallback

Available on Listenable, provided by the ListenableExtension extension

Adds callback as listener and returns a function to remove it.
toString() → String
A string representation of this object.
inherited
update(UserTransform other) → void
Takes every field from other and notifies.

Operators

operator *(double scalar) → UserTransform
Every field times scalar.
operator +(UserTransform other) → UserTransform
The field-wise sum.
operator -(UserTransform other) → UserTransform
The field-wise difference.
operator ==(Object other) → bool
The equality operator.
override

Static Methods

zero() → UserTransform
No pan, zoom, rotation or flip.