matchAppRouteExt method

AppRouteMatch<dynamic, RouteParams>? matchAppRouteExt(
  1. RouteInformation? info
)

Implementation

AppRouteMatch? matchAppRouteExt(final RouteInformation? info) {
  if (info != null) {
    var matchRoute = info is PathRouteSettings
        ? AppRouteMatch(this.findRouteByUriTemplate(info.route),
            info.routeParams ?? DefaultRouteParams.empty)
        : this.matchRoute(info.location!);

    return matchRoute;
  }
  return null;
}