attachRootWidget method

void attachRootWidget(
  1. Widget app
)

Attaches the given app as the root widget without starting signal handlers.

Implementation

void attachRootWidget(Widget app) {
  terminal.clear();
  terminal.hideCursor();
  _rootElement = app.createElement();
  _rootElement!.mount(null);
}