stop method

void stop()

Stops the animation where it is, keeping the current value.

Implementation

void stop() {
  if (_disposed) throw StateError('Animation.stop() called after dispose.');
  _looping = false;
  _queue = null;
  _stop(canceled: true);
}