launch method

dynamic launch(
  1. ApplicationModel app,
  2. BuildContext context
)

Implementation

launch(ApplicationModel app, BuildContext context) async
{
  // get the home page
  var page = app.homePage;

  // set the system app
  app.started = false;
  System().launchApplication(app, true);

  // refresh the app
  app.refresh();

  // launch the page
  NavigationManager().setNewRoutePath(PageConfiguration(url: page, title: "Store"), source: "store");
}