ProxyAnimation class

An animation that is a proxy for another animation.

A proxy animation is useful because the parent animation can be mutated. For example, one object can create a proxy animation, hand the proxy to another object, and then later change the animation from which the proxy receives its value.

Inheritance
Mixed in types

Constructors

ProxyAnimation([Animation<double> animation ])
Creates a proxy animation. [...]

Properties

parent Animation<double>
The animation whose value this animation will proxy. [...]
read / write
status AnimationStatus
The current status of this animation.
read-only, override
value double
The current value of the animation.
read-only, override
hashCode int
The hash code for this object. [...]
read-only, inherited
isCompleted bool
Whether this animation is stopped at the end.
read-only, inherited
isDismissed bool
Whether this animation is stopped at the beginning.
read-only, inherited
isListening bool
Whether there are any listeners.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

didStartListening() → void
Called when the number of listeners changes from zero to one.
override
didStopListening() → void
Called when the number of listeners changes from one to zero.
override
toString() String
Returns a string representation of this object.
override
addListener(VoidCallback listener) → void
Calls the listener every time the value of the animation changes. [...]
inherited
addStatusListener(AnimationStatusListener listener) → void
Calls listener every time the status of the animation changes. [...]
inherited
didRegisterListener() → void
Calls didStartListening every time a registration of a listener causes an empty list of listeners to become non-empty. [...]
inherited
didUnregisterListener() → void
Calls didStopListening when an only remaining listener is unregistered, thus making the list empty. [...]
inherited
drive<U>(Animatable<U> child) Animation<U>
Chains a Tween (or CurveTween) to this Animation. [...]
@optionalTypeArgs, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
notifyListeners() → void
Calls all the listeners. [...]
inherited
notifyStatusListeners(AnimationStatus status) → void
Calls all the status listeners. [...]
inherited
removeListener(VoidCallback listener) → void
Stop calling the listener every time the value of the animation changes. [...]
inherited
removeStatusListener(AnimationStatusListener listener) → void
Stops calling the listener every time the status of the animation changes. [...]
inherited
toStringDetails() String
Provides a string describing the status of this object, but not including information about the object itself. [...]
inherited

Operators

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