triggerAnimation abstract method
Start animation.
If animation is completed (stopped at the upperBound) then the animation is reversed, and if the animation is dismissed (stopped at the lowerBound) then the animation is forwarded. IF animation is running nothing will happen.
You can force animation to restart from the lowerBound by setting the
restart
parameter to true.
You can start animation the conventional way using controller!.forward
for example.
It returns Future that resolves when the started animation ends.
Implementation
Future<void>? triggerAnimation({bool restart = false});