OneShotAnimation class Null safety

Controller tailered for managing one-shot animations

Inheritance

Constructors

OneShotAnimation(String animationName, {double mix = 1, bool autoplay = true, VoidCallback? onStop, VoidCallback? onStart})

Properties

animationName String
Animation name
final, inherited
autoplay bool
Pauses the animation when it's created
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
instance LinearAnimationInstance?
read-only, inherited
isActive bool
read / write, inherited
isActiveChanged ValueListenable<bool>
read-only, inherited
mix double
read / write, inherited
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.
read-only, inherited

Methods

apply(RuntimeArtboard artboard, double elapsedSeconds) → void
Apply animation to objects registered in core. Note that a core 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 non-existent method or property is accessed. [...]
inherited
onActivate() → void
@protected, inherited
onActiveChanged() → void
Perform tasks when the animation's active state changes
onDeactivate() → void
@protected, 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