FlareControls class

FlareControls is a concrete implementation of the FlareController.

This controller will provide some basic functionality, such as playing an animation, and advancing every frame. If multiple animations are playing at the same time, this controller will mix them.

Inheritance

Constructors

FlareControls()

Properties

hashCode int
The hash code for this object.
no setterinherited
isActive ValueNotifier<bool>
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

advance(FlutterActorArtboard artboard, double elapsed) bool
Advance all the FlareAnimationLayers that are currently controlled by this object, and mixes them accordingly.
override
initialize(FlutterActorArtboard artboard) → void
Called at initialization time, it stores the reference to the current FlutterActorArtboard.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCompleted(String name) → void
Listen for when the animation called name has completed.
play(String name, {double mix = 1.0, double mixSeconds = 0.2}) → void
Add the FlareAnimationLayer of the animation named name, to the end of the list of currently playing animation layers.
setViewTransform(Mat2D viewTransform) → void
Relays the information regarding the global Flutter viewTransform matrix of the FlareActor this controller is attached to.
override
toString() String
A string representation of this object.
inherited

Operators

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