maybeOf static method
The GlassContentAwareScopeState from the closest enclosing scope, or null if there is none.
Used by GlassContentAwareBrightness (and available to custom controls) to register for verdicts.
Implementation
static GlassContentAwareScopeState? maybeOf(BuildContext context) {
final marker =
context.dependOnInheritedWidgetOfExactType<_ContentAwareScopeMarker>();
return marker?.state;
}