OverlayPortal.targetsRootOverlay constructor

const OverlayPortal.targetsRootOverlay(
  1. {Key? key,
  2. required OverlayPortalController controller,
  3. required WidgetBuilder overlayChildBuilder,
  4. Widget? child}
)

Creates an OverlayPortal that renders the widget overlayChildBuilder builds on the root Overlay when OverlayPortalController.show is called.

Implementation

const OverlayPortal.targetsRootOverlay({
  super.key,
  required this.controller,
  required this.overlayChildBuilder,
  this.child,
}) : _targetRootOverlay = true;