playReverse method
Starts playing the animation in backward direction.
If a duration
named parameter is provided it will be
applied as the AnimationController.duration value.
Returns a TickerFuture that completes when the animation ends or get canceled.
Example: (using supercharged)
controller.playReverse(5.seconds);
Implementation
TickerFuture playReverse({Duration? duration}) {
this.duration = duration ?? this.duration;
return reverse();
}