overlayContext property

BuildContext? get overlayContext

give access to current Overlay Context

Implementation

BuildContext? get overlayContext {
  BuildContext? overlay;
  key.currentState?.overlay?.context.visitChildElements((element) {
    overlay = element;
  });
  return overlay;
}