attach method
Inserts the overlay into the app's root overlay.
Returns false when the app has no overlay to draw in.
Implementation
bool attach() {
final OverlayState? overlay = _findOverlay();
if (overlay == null) return false;
_overlay = overlay;
_entry ??= OverlayEntry(builder: _build);
overlay.insert(_entry!);
_inserted = true;
return true;
}