of static method
Implementation
static AnyToWidgetScope of(BuildContext context) {
final AnyToWidgetScope? result =
context.dependOnInheritedWidgetOfExactType<AnyToWidgetScope>();
assert(result != null, 'No AnyToWidgetScope found in context');
return result!;
}