play method
Starts playing the animation in forward 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.play(5.seconds);
Implementation
TickerFuture play({Duration? duration}) {
this.duration = duration ?? this.duration;
return forward();
}