wrapWithOverlay function

Widget wrapWithOverlay({
  1. required WidgetBuilder builder,
  2. Clip clipBehavior = Clip.hardEdge,
})

Wrap a widget with Overlay.

Implementation

Widget wrapWithOverlay({
  required WidgetBuilder builder,
  Clip clipBehavior = Clip.hardEdge,
}) {
  return Overlay(
    initialEntries: [OverlayEntry(builder: builder)],
    clipBehavior: clipBehavior,
  );
}