wrap static method
Wrap the provided child in an Overlay to allow other visual elements
(packed in OverlayEntrys) to float on top of the child.
This is a convenience method over the regular Overlay constructor: It
creates an Overlay and puts the provided child in an OverlayEntry
at the bottom of that newly created Overlay.
Implementation
static Widget wrap({
Key? key,
Clip clipBehavior = Clip.hardEdge,
bool alwaysSizeToContent = false,
required Widget child,
}) {
return _WrappingOverlay(
key: key,
clipBehavior: clipBehavior,
alwaysSizeToContent: alwaysSizeToContent,
child: child,
);
}