readScope<T extends Object> function
Framework plumbing: the nearest Scope<T> value without subscribing
context — for a render object registering with a service, or an action
fired from a handler, where a rebuild dependency would be wrong.
Implementation
T? readScope<T extends Object>(BuildContext context) =>
(context as Element)._findScopeElementByKey(T)?.value as T?;