FluxMotionController class

Controls the playback of one attached Flux Motion widget.

A controller can be attached to only one widget at a time. Playback methods are safe to call while detached and become no-ops until a widget attaches.

Constructors

FluxMotionController()
Creates a controller that can be passed to a Flux Motion widget.

Properties

hashCode → int
The hash code for this object.
no setterinherited
isAttached → bool
Whether this controller is currently attached to a mounted widget.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

attach({required Object owner, required VoidCallback play, required VoidCallback stop, required VoidCallback reset, required VoidCallback replay}) → void
Attaches widget-owned playback callbacks to this controller.
detach(Object owner) → void
Detaches callbacks owned by owner.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
play() → void
Starts the motion using the trigger configured by the attached widget.
replay() → void
Returns the motion to its initial frame and starts it from the beginning.
reset() → void
Stops playback and returns the motion to its initial frame.
stop() → void
Stops playback at its current frame.
toString() → String
A string representation of this object.
inherited

Operators

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