match<P, S, D> method
Returns the typed match belonging to route.
Implementation
RouteMatch<P, S, D>? match<P, S, D>(TypedRoute<P, S, D> route) {
for (final value in _matches) {
if (!identical(value.route.identity, route.identity)) continue;
return RouteMatch<P, S, D>._(
route: route,
params: value.params as P,
search: value.search as S,
searchError: value.searchError,
location: location,
branch: branch,
);
}
return null;
}