repeat method

Future<void> repeat({
  1. int count = 1,
})

Repeats the animation a specified number of times.

Example:

controller.repeat(count: 3);

Implementation

Future<void> repeat({int count = 1}) async {
  for (int i = 0; i < count; i++) {
    await forward();
    reset();
  }
}