resetAnimation method
void
resetAnimation({
- Tween<
T> ? tween, - Map<
String, Tween< ? tweenMap,Object?> > - Duration? duration,
- Curve? curve,
- int? repeats,
- int? cycles,
override
The state of Animator widget.
From the parameter defined in the Animator widget, it instantiates the animation.
Implementation
@override
void resetAnimation(
{Tween<T>? tween,
Map<String, Tween>? tweenMap,
Duration? duration,
Curve? curve,
int? repeats,
int? cycles}) {
_animatorState!
..resetAnimation(
tween: tween,
tweenMap: tweenMap,
duration: duration,
curve: curve,
repeats: repeats,
cycles: cycles,
)
..triggerAnimation(restart: true);
}