AnimationTask class

Abstract class that represents a single animation task that can be processed inside an AnimationControllerX.

Implementers
Annotations
  • @Deprecated('See migration guide: https://pub.dev/packages/sa_v1_migration')

Constructors

AnimationTask({AnimationTaskCallback onStart, AnimationTaskCallback onComplete})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
onComplete AnimationTaskCallback
Callback fired when task completes
read / write
onStart AnimationTaskCallback
Callback fired when task starts
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
startedTime Duration
Time when task started
read / write
startedValue double
Value of AnimationControllerX when task started
read / write

Methods

completeTask() → dynamic
Called by computeValue when task completes.
computeValue(Duration time) double
Returns the new value of the animation
dispose() → void
Called when task disposes
isCompleted() bool
Returns whether the task is completed
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
started(Duration time, double value) → dynamic
Called when task starts
toString() String
A string representation of this object. [...]
@mustCallSuper, override

Operators

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