buildPageRoute method

PageRouteInfo? buildPageRoute(
  1. String? path, {
  2. bool includePrefixMatches = true,
})

Finds match of path then returns a route-able entity

Implementation

PageRouteInfo? buildPageRoute(String? path, {bool includePrefixMatches = true}) {
  if (path == null) return null;
  return matcher.match(path, includePrefixMatches: includePrefixMatches)?.firstOrNull?.toPageRouteInfo();
}