buildPageRoutesStack method

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

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();
}