stop method

void stop()

Stops the animation and freezes it at the current progress.

Implementation

void stop() {
  _startProgress = rawProgress;
  _stopwatch?.stop();
  if (status == AnimationStatus.forward ||
      status == AnimationStatus.reverse) {
    status = AnimationStatus.completed;
  }
}