FlareController is a general-purpose interface for customizing the behavior of a Flare animation at runtime.
FlareActor( "flare_file.flr", controller: _myCustomController )
FlareControllers can implement three methods:
- initialize() is called when the FlareActor is first created.
- setViewTransform() and advance() are called every time the FlareActor widget is repainted.
A basic implementation can be found in FlareControls.
FlutterActorArtboard artboard, double elapsed) → bool
Advances the animation of the current
FlutterActorArtboard artboard) → void
- Useful to fetch references to animation components that will be affected by this controller.
Mat2D viewTransform) → void
Relays the information regarding the global Flutter
viewTransformmatrix of the FlareActor this controller is attached to.
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
) → String
Returns a string representation of this object.
dynamic other) → bool
The equality operator.