ParserExceptionHandler typedef

ParserExceptionHandler = RouteMatchList Function(BuildContext context, RouteMatchList routeMatchList)

The function signature of GoRouteInformationParser.onParserException.

The routeMatchList parameter carries the exception describing the issue.

The returned RouteMatchList is used as parsed result for the GoRouterDelegate.

Implementation

typedef ParserExceptionHandler =
    RouteMatchList Function(
      BuildContext context,
      RouteMatchList routeMatchList,
    );