SetValueTask class

An animation task that sets the current animation position to a specified value. It completes right after that.

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

Constructors

SetValueTask({@required double value, 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, inherited
onStart AnimationTaskCallback
Callback fired when task starts
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
startedTime Duration
Time when task started
read / write, inherited
startedValue double
Value of AnimationControllerX when task started
read / write, inherited
value double
Double value between 0.0 and 1.0 to set.
final

Methods

completeTask() → dynamic
Called by computeValue when task completes.
inherited
computeValue(Duration time) double
Returns the new value of the animation
override
dispose() → void
Called when task disposes
inherited
isCompleted() bool
Returns whether the task is completed
inherited
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
inherited
toString() String
A string representation of this object. [...]
override

Operators

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