nestedRouter method
- @Deprecated("It is no longer possible to use [nestedRouter] by directly specifying [PageRef] or [WidgetRef]. Instead, use [ref.page.nestedRouter] to specify the scope. [PageRef]や[WidgetRef]を直接指定しての[nestedRouter]の利用はできなくなります。代わりに[ref.page.nestedRouter]でスコープを指定しての利用を行ってください。")
NestedAppRouter
nestedRouter(
{ - Object? name,
})
Implementation
@Deprecated(
"It is no longer possible to use [nestedRouter] by directly specifying [PageRef] or [WidgetRef]. Instead, use [ref.page.nestedRouter] to specify the scope. [PageRef]や[WidgetRef]を直接指定しての[nestedRouter]の利用はできなくなります。代わりに[ref.page.nestedRouter]でスコープを指定しての利用を行ってください。",
)
NestedAppRouter nestedRouter({
Object? name,
}) {
final router = fetch<NestedAppRouter>(name);
if (router == null) {
throw Exception("The router does not exist.");
}
return router;
}