of static method

Implementation

static AnchoredPopupsController? of(BuildContext context) {
  final w = context.dependOnInheritedWidgetOfExactType<_InheritedPopupOverlay>();
  if (w == null) print("[AnchoredPopups] WARNING: No AnchoredPopup was found.");
  return w == null ? null : w.state;
}