rootOverlay property

OverlayState? rootOverlay

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

context.rootOverlay is equivalent to widgets.Overlay.of with rootOverlay: true.

Implementation

widgets.OverlayState? get rootOverlay {
  return widgets.Overlay.of(this, rootOverlay: true);
}