maybeOf static method
- BuildContext context
The router from the closest AppRouterProvider instance that encloses
the given context. May be null if there is no surrounding provider.
Implementation
static AppRouter? maybeOf(BuildContext context) =>
context.dependOnInheritedWidgetOfExactType<AppRouterProvider>()?.router;