running property

bool running

Whether the UI's game loop is running and rendering frames. Initially off.

Implementation

bool get running => _running;
void running=(bool value)

Set to true to start the game loop for the UI and all of its Layers. Leave this set to false if you want to manually manage updating and rendering the UI yourself.

Implementation

set running(bool value) {
  _running = value;

  if (_running) {
    _lastAnimationTime = html.window.performance.now();
    html.window.requestAnimationFrame(_onTick);
  }
}