initRoutes method

void initRoutes({
  1. String? initialRoute,
})

Initialize routes

Implementation

void initRoutes({String? initialRoute}) {
  if (initialRoute != null) {
    setInitialRoute(initialRoute);
    return;
  }
  if (_initialRoute != null) {
    return;
  }
  setInitialRoute(NyRouter.getInitialRoute());
}