maybeOf static method

WindowAdaptationState? maybeOf(
  1. BuildContext context
)

Returns the nearest scope, or null when no scope is installed.

Implementation

static WindowAdaptationState? maybeOf(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<WindowAdaptationScope>()
      ?.state;
}