initRoutes method

Future<void> initRoutes()

Implementation

Future<void> initRoutes() {
  var location = context.binding.currentUri.toString();
  return _matchRoute(location).then(_preload).then((match) {
    _matchList = match;
    if (context.binding.isClient && match.uri.toString() != location) {
      PlatformRouter.instance.history.replace(match.uri.toString(), title: match.title);
    }
  });
}