wrapWithOverlay function
Wrap a widget with Overlay.
Implementation
Widget wrapWithOverlay({
required WidgetBuilder builder,
Clip clipBehavior = Clip.hardEdge,
}) {
return Overlay(
initialEntries: [OverlayEntry(builder: builder)],
clipBehavior: clipBehavior,
);
}