onUnknownRoute property
If routerConfig is not specified, this callback is called when a route name not listed in routes is queried.
The route information to be generated is passed to routeSettings
.
Return the generated Route in the return value.
routerConfigが指定されていない場合、routesに記載されていないルート名がクエリされたときに呼ばれるコールバック。
routeSettings
に生成したいルートの情報が渡されます。
戻り値に生成したRouteを返してください。
Implementation
final Route<dynamic>? Function(RouteSettings routeSettings)? onUnknownRoute;