stop method
void
stop()
Stops the game loop.
Implementation
void stop() {
_running = false;
_timer?.cancel();
_timer = null;
}
Stops the game loop.
void stop() {
_running = false;
_timer?.cancel();
_timer = null;
}