An animation that is the reverse of another animation.

If the parent animation is running forward from 0.0 to 1.0, this animation is running in reverse from 1.0 to 0.0. Notice that using a ReverseAnimation is different from simply using a Tween with a begin of 1.0 and an end of 0.0 because the tween does not change the status or direction of the animation.

Inheritance
Mixes-in
  • AnimationLazyListenerMixin
  • AnimationLocalStatusListenersMixin

Constructors

ReverseAnimation(Animation<double> parent)

Creates a reverse animation.

Properties

parent Animation<double>

The animation whose value and direction this animation is reversing.

read-only
status AnimationStatus

read-only
value double

read-only
hashCode int

Get a 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

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

addListener(VoidCallback listener) → void

Calls the listener every time the value of the animation changes.

didStartListening() → void

Called when the number of listeners changes from zero to one.

didStopListening() → void

Called when the number of listeners changes from one to zero.

removeListener(VoidCallback listener) → void

Stop calling the listener every time the value of the animation changes.

toString() String

Returns a string representation of this object.

addStatusListener(AnimationStatusListener listener) → void

Calls listener every time the status of the animation changes.

inherited
didRegisterListener() → void

inherited
didUnregisterListener() → void

inherited
noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
notifyStatusListeners(AnimationStatus status) → void

Calls all the status listeners.

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