AppRouteScope constructor

const AppRouteScope({
  1. required AppRouter router,
  2. required Widget child,
  3. Key? key,
})

InheritedWidget for placing AppRouter on the widget tree.

You can take the value of AppRouter passed here in AppRouter.of.

AppRouterをウィジェットツリー上に配置するためのInheritedWidget

AppRouter.ofでここで渡したAppRouterの値を取ることができます。

Implementation

const AppRouteScope({
  required this.router,
  required super.child,
  super.key,
});