AnimationProgress class

Utility class to compute an animation progress between two points in time.

On creation you specify a startTime and a duration.

You can query the progress value - a value between 0.0 and 11.0 - by calling progress and passing the current time.

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

Constructors

AnimationProgress({Duration duration, Duration startTime})
Creates an AnimationProgress.

Properties

duration Duration
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
startTime Duration
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
progress(Duration time) double
Queries the current progress value based on the specified startTime and duration as a value between 0.0 and 1.0. It will automatically clamp values this interval to fit in.
toString() String
A string representation of this object. [...]
inherited

Operators

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