FlareActorAnimation class
A class that wraps all the settings of a flare animation from fileName.
It has a similar API to the FlareActor
widget.
Constructors
- FlareActorAnimation(String? fileName, {String? boundsNode, String? animation, BoxFit fit = BoxFit.contain, Alignment alignment = Alignment.center, bool isPaused = false, bool snapToEnd = false, FlareController? controller, FlareCompletedCallback? callback, Color? color, bool shouldClip = true, bool sizeFromArtboard = false, String? artboard, bool useAntialias = true})
- FlareActorAnimation.asset(AssetProvider? flareProvider, {String? boundsNode, String? animation, BoxFit fit = BoxFit.contain, Alignment alignment = Alignment.center, bool isPaused = false, bool snapToEnd = false, FlareController? controller, FlareCompletedCallback? callback, Color? color, bool shouldClip = true, bool sizeFromArtboard = false, String? artboard, bool useAntialias = true})
Properties
- alignment → Alignment
-
Mirror to
FlareActor.alignment
final - animation → String?
-
Mirror to
FlareActor.animation
final - artboard → String?
-
Mirror to
FlareActor.artboard
final - boundsNode → String?
-
Mirror to
FlareActor.boundsNode
final - callback → FlareCompletedCallback?
-
Mirror to
FlareActor.callback
final - color → Color?
-
Mirror to
FlareActor.color
final - controller → FlareController?
-
Mirror to
FlareActor.controller
final - fileName → String?
-
Mirror to
FlareActor.filename
final - fit → BoxFit
-
Mirror to
FlareActor.fit
final - flareProvider → AssetProvider?
-
Mirror to
FlareActor.flareProvider
final - hashCode → int
-
The hash code for this object.
no setterinherited
- isPaused → bool
-
Mirror to
FlareActor.isPaused
final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shouldClip → bool
-
Mirror to
FlareActor.shouldClip
final - sizeFromArtboard → bool
-
Mirror to
FlareActor.sizeFromArtboard
final - snapToEnd → bool
-
Mirror to
FlareActor.snapToEnd
final - useAntialias → bool
-
When false disables antialiasing on drawables.
final
Methods
-
advance(
double dt) → void -
destroy(
) → void -
init(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
Canvas canvas, Vector2 size) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited