void render(RenderState renderState)

Source

void render(RenderState renderState) {
  if (renderState.renderContext is RenderContextCanvas) {
    var commands = _getCommands(false);
    var context = new _GraphicsContextCanvas(renderState);
    _updateContext(context, commands);
  } else {
    var commands = _getCommands(true);
    var context = new _GraphicsContextRender(renderState);
    _updateContext(context, commands);
  }
}