paused property
Returns is the engine if currently paused or running
Implementation
bool get paused => _paused;
Pauses or resume the engine
Implementation
set paused(bool value) {
_paused = value;
final gameLoop = _gameRenderBox?.gameLoop;
if (gameLoop != null) {
if (value) {
gameLoop.stop();
} else {
gameLoop.start();
}
}
}