AnimationWithParentMixin<T> mixin
Null safety
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
-
parent
→ Animation<
T> -
The animation whose value this animation will proxy.
read-only
- status → AnimationStatus
-
The current status of this animation.
read-only
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
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 non-existent 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