An animation of doubles that tracks the mean of two other animations.

The status of this animation is the status of the right animation if it is moving, and the left animation otherwise.

The value of this animation is the double that represents the mean value of the values of the left and right animations.

Inheritance

Constructors

AnimationMean({Animation<double> left, Animation<double> right })
Creates an animation that tracks the mean of two other animations.

Properties

value double
The current value of the animation.
read-only
first Animation<double>
The first sub-animation. Its status takes precedence if neither are animating.
final, inherited
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
next Animation<double>
The second sub-animation.
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
status AnimationStatus
The current status of this animation.
read-only, inherited

Methods

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
inherited
didStartListening() → void
Called when the number of listeners changes from zero to one.
inherited
didStopListening() → void
Called when the number of listeners changes from one to zero.
inherited
didUnregisterListener() → void
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
toString() String
inherited
toStringDetails() String
Provides a string describing the status of this object, but not including information about the object itself. [...]
inherited

Operators

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