stop method

void stop()

Halts the animation mid-flight. Particles freeze in place.

Call ConfettiController.reset to also clear the frozen particles from the canvas.

Implementation

void stop() {
  if (_state == ControllerState.stopped) return;
  _state = ControllerState.stopped;
  notifyListeners();
}