of static method
- BuildContext context
The router from the closest AppRouterProvider instance that encloses the given context.
Implementation
static AppRouter of(BuildContext context) =>
context.dependOnInheritedWidgetOfExactType<AppRouterProvider>()!.router;