AnimationWithParentMixin<T> mixin
Implements most of the Animation interface by deferring its behavior to a given parent Animation.
To implement an Animation that is driven by a parent, it is only necessary
to mix in this class, implement parent, and implement T get value
.
To define a mapping from values in the range 0..1, consider subclassing Tween instead.
- Mixin applications
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
parent
→ Animation<
T> -
The animation whose value this animation will proxy.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → AnimationStatus
-
The current status of this animation.
no setter
Methods
-
addListener(
VoidCallback listener) → void - Calls the listener every time the value of the animation changes.
-
addStatusListener(
AnimationStatusListener listener) → void - Calls listener every time the status of the animation changes.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeListener(
VoidCallback listener) → void - Stop calling the listener every time the value of the animation changes.
-
removeStatusListener(
AnimationStatusListener listener) → void - Stops calling the listener every time the status of the animation changes.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited