launch method

void launch(
  1. ThemeModel theme,
  2. bool notifyOnThemeChange
)

Implementation

void launch(ThemeModel theme, bool notifyOnThemeChange) {
  // set stash values
  for (var entry in _stash.map.entries) {
    stash.setObservable(entry.key, entry.value);
  }

  // start all datasources
  if (datasources != null) {
    for (var datasource in datasources!) {
      if (datasource.autoexecute != false) {
        datasource.start();
      }
      datasource.initialized = true;
    }
  }

  // set the theme if supplied
  setTheme(theme, notifyOnThemeChange);
}