FlareController class

FlareController is a general-purpose interface for customizing the behavior of a Flare animation at runtime.

FlareControllers should be attached to FlareActor widgets:

FlareActor(
   "flare_file.flr",
   controller: _myCustomController
)

FlareControllers can implement three methods:

A basic implementation can be found in FlareControls.

Implementers

Constructors

FlareController()

Properties

isActive ValueNotifier<bool>
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

advance(FlutterActorArtboard artboard, double elapsed) → bool
Advances the animation of the current artboard by elapsed.
initialize(FlutterActorArtboard artboard) → void
Useful to fetch references to animation components that will be affected by this controller.
setViewTransform(Mat2D viewTransform) → void
Relays the information regarding the global Flutter viewTransform matrix of the FlareActor this controller is attached to.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

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