launch method

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

Implementation

void launch(ThemeModel theme, bool notifyOnThemeChange)
{
  // set stash values
  _stash.map.entries.forEach((entry) => 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);
}