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