stop method

void stop()

Stops the game loop.

Implementation

void stop() {
  _running = false;
  _timer?.cancel();
  _timer = null;
}