void stop()

Stops running this animation.

This does not trigger any notifications. The animation stops in its current state.

Source

void stop() {
  _simulation = null;
  _lastElapsedDuration = null;
  _ticker.stop();
}