match method

MatchResult match(
  1. String path
)

Implementation

MatchResult match(String path) {
  return routes.map((x) => x.match(path)).firstWhere(
        (x) => x.isSuccess,
        orElse: () => MatchResult.fail(null),
      );
}