of static method

OverlayState? of(
  1. BuildContext context
)

Implementation

static OverlayState? of(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<_OverlayScope>()?._state;
}