An interface for combining multiple Animations. Subclasses need only
implement the value
getter to control how the child animations are
combined. Can be chained to combine more than 2 animations.
For example, to create an animation that is the sum of two others, subclass
this class and define T get value = first.value + second.value;
- Inheritance
- Object
- Listenable
- Animation<T>
- CompoundAnimation
- Mixes-in
- AnimationLazyListenerMixin
- AnimationLocalListenersMixin
- AnimationLocalStatusListenersMixin
Constructors
- CompoundAnimation({Animation<T> first, Animation<T> next })
-
Creates a CompoundAnimation. Both arguments must be non-null. Either can be a CompoundAnimation itself to combine multiple animations.
Properties
- first → Animation<T>
-
The first sub-animation. Its status takes precedence if neither are animating.
read-only - next → Animation<T>
-
The second sub-animation.
read-only - status → AnimationStatus
-
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 - value → T
-
The current value of the animation.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
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.
-
toString(
) → String -
Returns a string representation of this object.
-
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
-
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 -
toStringDetails(
) → String -
Provides a string describing the status of this object, but not including information about the object itself.
inherited