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