onGenerateRoute property
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:
- WidgetsApp.onGenerateRoute, the equivalent property in WidgetsApp.
Implementation
final RouteFactory? onGenerateRoute;