reparse method

RouteMatchList reparse(
  1. RouteMatchList matchList
)

Reparse the input RouteMatchList

Implementation

RouteMatchList reparse(RouteMatchList matchList) {
  RouteMatchList result =
      findMatch(matchList.uri.toString(), extra: matchList.extra);

  for (final ImperativeRouteMatch imperativeMatch
      in matchList.matches.whereType<ImperativeRouteMatch>()) {
    final ImperativeRouteMatch match = ImperativeRouteMatch(
        pageKey: imperativeMatch.pageKey,
        matches: findMatch(imperativeMatch.matches.uri.toString(),
            extra: imperativeMatch.matches.extra),
        completer: imperativeMatch.completer);
    result = result.push(match);
  }
  return result;
}