AlwaysStoppedAnimation<T> class Null safety

An animation that is always stopped at a given value.

The status is always AnimationStatus.forward.

Inheritance

Constructors

AlwaysStoppedAnimation(T value)
Creates an AlwaysStoppedAnimation with the given value.
const

Properties

hashCode int
The hash code for this object.
read-onlyinherited
isCompleted bool
Whether this animation is stopped at the end.
read-onlyinherited
isDismissed bool
Whether this animation is stopped at the beginning.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
status AnimationStatus
The current status of this animation.
read-onlyoverride
value → T
The current value of the animation.
final

Methods

addListener(VoidCallback listener) → void
Calls the listener every time the value of the animation changes.
override
addStatusListener(AnimationStatusListener listener) → void
Calls listener every time the status of the animation changes.
override
drive<U>(Animatable<U> child) Animation<U>
Chains a Tween (or CurveTween) to this Animation.
optionalTypeArgs">@optionalTypeArgsinherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
removeListener(VoidCallback listener) → void
Stop calling the listener every time the value of the animation changes.
override
removeStatusListener(AnimationStatusListener listener) → void
Stops calling the listener every time the status of the animation changes.
override
toString() String
A string representation of this object.
inherited
toStringDetails() String
Provides a string describing the status of this object, but not including information about the object itself.
override

Operators

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