paused property

bool get paused
inherited

Returns is the engine if currently paused or running

Implementation

bool get paused => _paused;
set paused (bool value)
inherited

Pauses or resume the engine

Implementation

set paused(bool value) {
  if (pauseEngineFn != null && resumeEngineFn != null) {
    if (value) {
      pauseEngine();
    } else {
      resumeEngine();
    }
  } else {
    _paused = value;
  }
}