insertOverlay method

dynamic insertOverlay(
  1. OverlayEntry overlay
)

Implementation

insertOverlay(OverlayEntry overlay) {
  if (_overlayEntry != null) {
    _overlayEntry!.remove();
  }

  _overlayEntry = null;
  inFloatingViewMode = false;

  Overlay.of(_context).insert(overlay);

  _overlayEntry = overlay;
}