close method
dynamic
close()
关闭悬浮窗
Implementation
close() {
if (!_isShowing) return;
try {
_overlayEntry?.remove();
// 避免保留对已移除 OverlayEntry 的引用
_overlayEntry = null;
} catch (_) {}
_isShowing = false;
_isHidden = false;
_notifyClose();
// 注意:close() 仅移除 Overlay(保留状态与资源),若需要释放 controller/listeners
// 请在确定不再使用时调用 dispose() 方法。
}