AnimationMax<T extends num> class
Null safety
An animation that tracks the maximum of two other animations.
The value of this animation is the maximum of the values of first and next.
- Inheritance
-
- Object
- Listenable
- Animation<
T> - CompoundAnimation<
T> - AnimationMax
Constructors
-
AnimationMax(Animation<
T> first, Animation<T> next) - Creates an AnimationMax.
Properties
-
first
→ Animation<
T> -
The first sub-animation. Its status takes precedence if neither are
animating.
finalinherited
- 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
- isListening → bool
-
Whether there are any listeners.
read-onlyinherited
-
next
→ Animation<
T> -
The second sub-animation.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- status → AnimationStatus
-
Gets the status of this animation based on the first and next status.
read-onlyinherited
- value → T
-
The current value of the animation.
read-onlyoverride
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
-
clearListeners(
) → void -
Removes all listeners added with addListener.
protected">@protectedinherited
-
clearStatusListeners(
) → void -
Removes all listeners added with addStatusListener.
protected">@protectedinherited
-
didRegisterListener(
) → void -
Calls didStartListening every time a registration of a listener causes
an empty list of listeners to become non-empty.
protected">@protectedinherited
-
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 -
Calls didStopListening when an only remaining listener is unregistered,
thus making the list empty.
protected">@protectedinherited
-
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
-
notifyListeners(
) → void -
Calls all the listeners.
protected">@protectedinherited
-
notifyStatusListeners(
AnimationStatus status) → void -
Calls all the status listeners.
protected">@protectedinherited
-
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 -
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited