maybeOf static method

MacosWindowScope? maybeOf(
  1. BuildContext context
)

Returns a MacosWindowScope of the MacosWindow that most tightly encloses the given context. The result can be null.

If this context does not have a MacosWindow as its ancestor, the result returned is null.

The context argument must not be null.

Implementation

static MacosWindowScope? maybeOf(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<MacosWindowScope>();
}