onGenerateInitialRoutes property
If routerConfig is not specified, this callback is executed when the first route is configured.
The route name is passed to routePath
for the first time.
Return a list of generated Route in the return value.
routerConfigが指定されていない場合、初回のルートが設定されている場合に実行されるコールバック。
routePath
に初回のルート名が渡されます。
戻り値に生成したRouteのリストを返してください。
Implementation
final List<Route<dynamic>> Function(String routePath)?
onGenerateInitialRoutes;