buildPageRoute method

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

Implementation

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