MiuixDialogEntry class

对话框条目。

Inheritance

Constructors

MiuixDialogEntry({required MiuixPopupController controller, required WidgetBuilder content, MiuixPopupTransition? enterTransition, MiuixPopupTransition? exitTransition, bool enableWindowDim = true, MiuixPopupTransition? dimEnterTransition, MiuixPopupTransition? dimExitTransition, bool enableAutoLargeScreen = true, ValueListenable<double>? dimAlpha, VoidCallback? onDismissFinished})

Properties

content ↔ WidgetBuilder
getter/setter pairinherited
controller → MiuixPopupController
finalinherited
dimAlpha ↔ ValueListenable<double>?
getter/setter pair
dimEnterTransition ↔ MiuixPopupTransition?
getter/setter pairinherited
dimExitTransition ↔ MiuixPopupTransition?
getter/setter pairinherited
enableAutoLargeScreen ↔ bool
getter/setter pair
enableWindowDim ↔ bool
getter/setter pairinherited
enterTransition ↔ MiuixPopupTransition?
getter/setter pairinherited
exitTransition ↔ MiuixPopupTransition?
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
isDialog → bool
no setteroverride
isDisposed → bool
是否已释放。
no setterinherited
onDismissFinished ↔ VoidCallback?
getter/setter pair
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 pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
zIndex ↔ double
getter/setter pairinherited

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 断言。
inherited
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
inherited
updateDialog({required bool enableAutoLargeScreen, required ValueListenable<double>? dimAlpha, required VoidCallback? onDismissFinished}) → void

Operators

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