nestedRouter method

NestedAppRouter nestedRouter({
  1. Object? name,
})

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で作成されたネストされたルーターを取得します。

取得したルーターを利用してネストされたページ内部からルーティングを操作することが可能です。

routernameを指定して作成した場合は作成時のnameを指定して取得してください。

NestedAppRouterが存在しない場合はエラーを返します。

Implementation

NestedAppRouter nestedRouter({
  Object? name,
}) {
  final router = fetch<NestedAppRouter>(name);
  return router;
}