dependOnScope<T extends Object> function
Framework plumbing behind widget accessors such as Theme.of: the nearest
Scope<T> value, subscribing context to it, or null. Unlike
BuildContext.scope it may run anywhere the element is mounted, because
accessors are also called from handlers and element hooks.
Implementation
T? dependOnScope<T extends Object>(BuildContext context) =>
(context as Element)._dependOnScope<T>();