Animation<T> class abstract

An animation with a value of type T.

This is the core abstraction for animations. It extends Listenable so widgets can subscribe to value changes, and ValueListenable so the current value is always accessible.

Concrete implementations include AnimationController (which drives the animation) and _AnimatedEvaluation (which applies an Animatable to a parent animation).

Inheritance
Implemented types

Constructors

Animation()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isAnimating bool
Whether this animation is currently running (forward or reverse).
no setter
isCompleted bool
Whether this animation is stopped at the end.
no setter
isDismissed bool
Whether this animation is stopped at the beginning.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status AnimationStatus
The current status of this animation.
no setter
value → T
The current value of the animation.
no setteroverride

Methods

addListener(void listener()) → void
Register listener to be called when the object notifies.
inherited
addStatusListener(AnimationStatusListener listener) → void
Registers a listener that is called when the animation status changes.
drive<U>(Animatable<U> child) Animation<U>
Chains this animation with an Animatable to produce a derived Animation of a different type.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeListener(void listener()) → void
Remove a previously registered listener.
inherited
removeStatusListener(AnimationStatusListener listener) → void
Removes a previously registered status listener.
toString() String
A string representation of this object.
inherited

Operators

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