AnimatorKey<T> class abstract

A kay that provides access to the AnimatorState of the Animator widget It is associated with.

By using AnimatorKey you can start, stop, resume, add animation listener or add status animation listener to an Animator widget from outside.

You can also reconfigure animation and restart is using the AnimatorKey.refreshAnimation method.

Implemented types
Implementers

Constructors

AnimatorKey({T? initialValue, Map<String, dynamic>? initialMapValue})
factory

Properties

animation Animation<T>
The Animation object
no setteroverride
controller AnimationController
The AnimationController for an animation.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
The value of the animation
no setteroverride

Methods

getAnimation<R>(String name) Animation<R>
get the animation of provided name
override
getValue<R>(String name) → R
The value map of the Animator.tweenMap;
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetAnimation({Tween<T>? tween, Map<String, Tween<Object?>>? tweenMap, Duration? duration, Curve? curve, int? repeats, int? cycles}) → void
The state of Animator widget.
inherited
toString() String
A string representation of this object.
inherited
triggerAnimation({bool restart = false}) → void
Trigger the animation.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited