onGenerateRoute property

RouteFactory? onGenerateRoute
final

The route generator callback used when the app is navigated to a named route.

This callback is used if routes and home do not contain the requested route.

The pageRouteBuilder is not used for routes created by this callback.

See also:

Implementation

final RouteFactory? onGenerateRoute;