maybeOf static method
Returns the nearest scope, or null when no scope is installed.
Implementation
static WindowAdaptationState? maybeOf(BuildContext context) {
return context
.dependOnInheritedWidgetOfExactType<WindowAdaptationScope>()
?.state;
}