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.

Superclass Constraints
Implemented by

Constructors

AnimationWithParentMixin()

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-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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. [...]
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. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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