repeatAnimation method
Repeats the animation a specified number of times.
Example:
controller.repeat(count: 3);
Implementation
Future<void> repeatAnimation({int count = 1}) async {
for (int i = 0; i < count; i++) {
await forward();
reset();
}
}