wrap static method

Widget wrap({
  1. Key? key,
  2. Clip clipBehavior = Clip.hardEdge,
  3. required Widget child,
})

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,
  required Widget child,
}) {
  return _WrappingOverlay(key: key, clipBehavior: clipBehavior, child: child);
}