nestedRouter method
Get the nested routers created in router.
It is possible to manipulate routing from inside the nested pages using the routers obtained.
If the router was created with name
specified, specify the name
at the time of creation to obtain the data.
Returns an error if NestedAppRouter does not exist.
routerで作成されたネストされたルーターを取得します。
取得したルーターを利用してネストされたページ内部からルーティングを操作することが可能です。
routerにname
を指定して作成した場合は作成時のname
を指定して取得してください。
NestedAppRouterが存在しない場合はエラーを返します。
Implementation
NestedAppRouter nestedRouter({
Object? name,
}) {
final router = fetch<NestedAppRouter>(name);
return router;
}