runApp function

void runApp(
  1. Widget rootWidget
)

Implementation

void runApp(Widget rootWidget) {
  _rootWidget = rootWidget;

  _appContainer = web.document.querySelector('#output') ??
      web.document.querySelector('#app') ??
      web.document.body as web.Element?;

  _ensureOverlayContainer();
  // We no longer clear the entire head, as it removes the original style.css from index.html.

  _renderApp();

  print('Flart app initialized and rendered');
}