MiuixPopupEntry class abstract

注册表中的统一弹窗条目。

通常无需手工创建;使用 MiuixDialogLayoutMiuixPopupLayout 注册。

Inheritance
Implementers

Constructors

MiuixPopupEntry({required MiuixPopupController controller, required WidgetBuilder content, MiuixPopupTransition? enterTransition, MiuixPopupTransition? exitTransition, bool enableWindowDim = true, MiuixPopupTransition? dimEnterTransition, MiuixPopupTransition? dimExitTransition})

Properties

content WidgetBuilder
getter/setter pair
controller MiuixPopupController
final
dimEnterTransition MiuixPopupTransition?
getter/setter pair
dimExitTransition MiuixPopupTransition?
getter/setter pair
enableWindowDim bool
getter/setter pair
enterTransition MiuixPopupTransition?
getter/setter pair
exitTransition MiuixPopupTransition?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
isDialog bool
no setter
isDisposed bool
是否已释放。
no setter
orphaned bool
是否已被宿主(MiuixDialogLayout/MiuixPopupLayout 的 State)放弃所有权。 为 true 时,HostedEntry 在退出动画结束、entry 从 registry 移除后负责 dispose 本 entry;为 false 时 entry 仍由宿主持有,HostedEntry 不得 dispose ——否则宿主再次 show 对话框时 _visibilityChanged 会往已 dispose 的 ChangeNotifier 上 addListener,抛 use-after-dispose。
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
zIndex double
getter/setter pair

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
dispose 幂等化:宿主 Layout State 与 HostedEntry 可能在同一帧被卸载 (例如承载弹层的路由整体 pop),两侧的 orphaned 判断会同时成立并各自 调用 dispose——第二次调用直接忽略,避免 use-after-dispose 断言。
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
toString() String
A string representation of this object.
inherited
updateBase({required WidgetBuilder content, required MiuixPopupTransition? enterTransition, required MiuixPopupTransition? exitTransition, required bool enableWindowDim, required MiuixPopupTransition? dimEnterTransition, required MiuixPopupTransition? dimExitTransition}) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited