Reputation: 28906
I have an AnimationController
object and I want to repeat an animation 10 times.
AnimationController controller = ...;
controller.repeat(count: 10); // Wish there was something like this
Note: I'm not looking for workarounds, like calling controller.forward(from: 0)
10 times recursively or Timer.periodic
, or keeping a count of AnimationController.animationStatus
, etc and then stopping the animation.
Upvotes: 0
Views: 415