buildPageRoutesStack method

List<PageRouteInfo>? buildPageRoutesStack(
  1. String? path, {
  2. bool includePrefixMatches = true,
})

Finds matches of path then returns a list of route-able entities

Implementation

List<PageRouteInfo>? buildPageRoutesStack(String? path, {bool includePrefixMatches = true}) {
  if (path == null) return null;
  return matcher.match(path, includePrefixMatches: includePrefixMatches)?.map((m) => m.toPageRouteInfo()).toList();
}