setInitialRoute method

dynamic setInitialRoute(
  1. String routeName
)

Set the initial route from a routeName.

Implementation

setInitialRoute(String routeName) {
  _initialRoute = routeName;
  if (!Backpack.instance.isNyloInitialized()) {
    Backpack.instance.save("nylo", this);
  }
}