The repeat method supports the reverse optional named argument, so you can write
animationController.repeat(reverse: true);
This is the modern, simple solution.
The repeat method supports the reverse optional named argument, so you can write
animationController.repeat(reverse: true);
This is the modern, simple solution.