addOverlay method

OverlayEntry addOverlay(
  1. WidgetBuilder builder
)

Insert the given widget into the overlay. The newly inserted widget will always be at the top.

Implementation

OverlayEntry addOverlay(WidgetBuilder builder) {
  var entry = OverlayEntry(builder: builder);
  this.overlay?.insert(entry);
  return entry;
}