OneShotAnimation class
Controller tailored for managing one-shot animations
- Inheritance
-
- Object
- RiveAnimationController<
RuntimeArtboard> - SimpleAnimation
- OneShotAnimation
Constructors
- OneShotAnimation(String animationName, {double mix = 1, bool autoplay = true, VoidCallback? onStop, VoidCallback? onStart})
Properties
- animationName → String
-
Animation name
finalinherited
- autoplay → bool
-
Pauses the animation when it's created
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- instance → LinearAnimationInstance?
-
no setterinherited
- isActive ↔ bool
-
getter/setter pairinherited
-
isActiveChanged
→ ValueListenable<
bool> -
no setterinherited
- mix ↔ double
-
getter/setter pairinherited
- onStart → VoidCallback?
-
Fires when the animation starts being active
final
- onStop → VoidCallback?
-
Fires when the animation stops being active
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
apply(
RuntimeArtboard artboard, double elapsedSeconds) → void -
Apply animation to objects registered in
core
. Note that acore
context is specified as animations can be applied to instances.inherited -
dispose(
) → void -
Dispose of any callback listeners
override
-
init(
RuntimeArtboard artboard) → bool -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onActivate(
) → void -
inherited
-
onActiveChanged(
) → void - Perform tasks when the animation's active state changes
-
onDeactivate(
) → void -
inherited
-
reset(
) → void -
Resets the animation back to it's starting time position
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited