OneShotAnimation class Null safety

Controller tailored 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
finalinherited
autoplay bool
Pauses the animation when it's created
finalinherited
hashCode int
The hash code for this object.
read-onlyinherited
instance LinearAnimationInstance?
read-onlyinherited
isActive bool
read / writeinherited
isActiveChanged ValueListenable<bool>
read-onlyinherited
mix double
read / writeinherited
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-onlyinherited

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
@protectedinherited
onActiveChanged() → void
Perform tasks when the animation's active state changes
onDeactivate() → void
@protectedinherited
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