ConditionalTask class

Animation task that keeps emitting the current value of animation until a certain condition occurs (when predicate return true).

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

Constructors

ConditionalTask({@required bool predicate(), 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
predicate bool Function()
Predicate function that checks for a certain condition. If it returns false the task keep processing. If it return true task completes.
read / write
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

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