runApp function

void runApp(
  1. Widget rootWidget
)

Implementation

void runApp(Widget rootWidget) {
  _rootWidget = rootWidget;

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

  _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');
}