allMatches method
Implementation
List<RouteMatchV1> allMatches(RouteMatcher matcher) {
var matches = <RouteMatchV1>[];
for (var route in routes) {
var matchResult = matcher.match(route);
if (matchResult != null) {
matches.add(matchResult);
if (matchResult.isParent || !matchResult.hasRest) {
break;
}
}
}
return matches;
}