orphaned property

bool orphaned
getter/setter pair

是否已被宿主(MiuixDialogLayout/MiuixPopupLayout 的 State)放弃所有权。 为 true 时,HostedEntry 在退出动画结束、entry 从 registry 移除后负责 dispose 本 entry;为 false 时 entry 仍由宿主持有,HostedEntry 不得 dispose ——否则宿主再次 show 对话框时 _visibilityChanged 会往已 dispose 的 ChangeNotifier 上 addListener,抛 use-after-dispose。

Implementation

bool orphaned = false;