OverlayPortal constructor
- Key? key,
- required OverlayPortalController controller,
- required WidgetBuilder overlayChildBuilder,
- OverlayChildLocation overlayLocation = OverlayChildLocation.nearestOverlay,
- Widget? child,
Creates an OverlayPortal that renders the widget overlayChildBuilder
builds on the closest Overlay when OverlayPortalController.show is
called.
The overlayLocation sets which Overlay this widget attaches the widget
returned by overlayChildBuilder to. Defaults to
OverlayChildLocation.nearestOverlay.
Implementation
const OverlayPortal({
super.key,
required this.controller,
required this.overlayChildBuilder,
this.overlayLocation = OverlayChildLocation.nearestOverlay,
this.child,
});