reparse method
Reparse the input RouteMatchList
Implementation
RouteMatchList reparse(RouteMatchList matchList) {
RouteMatchList result = findMatch(matchList.uri, extra: matchList.extra);
matchList.visitRouteMatches((RouteMatchBase match) {
if (match is ImperativeRouteMatch) {
result = result.push(
ImperativeRouteMatch(
pageKey: match.pageKey,
matches: findMatch(match.matches.uri, extra: match.matches.extra),
completer: match.completer,
),
);
}
return true;
});
return result;
}