of static method

Window? of(
  1. BuildContext context
)

of extact window object window from context The data from the closest instance of this class that encloses the given context.

Implementation

static Window? of(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<FloatwingProvider>()
      ?.window;
}