of static method

TabsRouterScope? of(
  1. BuildContext context, {
  2. bool watch = false,
})

Implementation

static TabsRouterScope? of(BuildContext context, {bool watch = false}) {
  if (watch) {
    return context.dependOnInheritedWidgetOfExactType<TabsRouterScope>();
  }
  return context.findAncestorWidgetOfExactType<TabsRouterScope>();
}