of static method
Looks up and returns the scoped controller
if watch is true dependent widget will watch changes of this scope otherwise it would just read it
returns null if it does not find it
Implementation
static TabsRouterScope? of(BuildContext context, {bool watch = false}) {
if (watch) {
return context.dependOnInheritedWidgetOfExactType<TabsRouterScope>();
}
return context.findAncestorWidgetOfExactType<TabsRouterScope>();
}