of static method

AppRouter of(
  1. BuildContext context
)

The router from the closest AppRouterProvider instance that encloses the given context.

Implementation

static AppRouter of(BuildContext context) =>
    context.dependOnInheritedWidgetOfExactType<AppRouterProvider>()!.router;