reset method

void reset()

Resets the animation, like it would just have been created.

Implementation

void reset() {
  clock = 0.0;
  elapsed = 0.0;
  currentIndex = 0;
  _done = false;
  _started = false;
  _paused = false;

  // Reset completeCompleter if it's already completed
  if (completeCompleter?.isCompleted ?? false) {
    completeCompleter = null;
  }
}