overlay property

OverlayState? get overlay

Returns the overlay state from the closest widgets.Overlay ancestor.

context.overlay is equivalent to widgets.Overlay.of.

Implementation

widgets.OverlayState? get overlay {
  return widgets.Overlay.of(this);
}