onGenerateRoute property

(Route? Function(RouteSettings routeSettings)?) onGenerateRoute
final

If routerConfig is not specified, a callback that is executed when the route is generated.

The route information to be generated is passed to routeSettings.

Return the generated Route in the return value.

routerConfigが指定されていない場合、ルートが生成される際に実行されるコールバック。

routeSettingsに生成したいルートの情報が渡されます。

戻り値に生成したRouteを返してください。

Implementation

final Route<dynamic>? Function(RouteSettings routeSettings)? onGenerateRoute;