allMatches method

List<RouteMatch> allMatches(
  1. RouteMatcher matcher
)

Implementation

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