match<P, S, D> method

DocumentValues<P, S, D>? match<P, S, D>(
  1. TypedRoute<P, S, D> route
)

Returns typed values for an active route.

Implementation

DocumentValues<P, S, D>? match<P, S, D>(TypedRoute<P, S, D> route) {
  for (final entry in _entries) {
    if (!identical(entry.route.identity, route.identity)) continue;
    return DocumentValues<P, S, D>._(
      params: entry.params as P,
      search: entry.search as S,
      data: entry.data as D,
    );
  }
  return null;
}