ElDialogState class
- Inheritance
-
- Object
- State<
ElDialog> - ElPopupState<
ElDialog> - ElDialogState
Constructors
Properties
- animationController ↔ AnimationController
-
显示、隐藏弹窗动画控制器
latefinalinherited
- animationDuration → Duration
-
声明默认的动画持续时间
no setteroverride
- child → Widget
-
no setter
- context → BuildContext
-
The location in the tree where this widget builds.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- ignoreOnceListener ↔ bool?
-
忽略一次响应式变量监听方法,有时候更新响应式变量不希望触发监听函数(需要手动控制动画),
你可以将此变量设置为 true,监听拦截后会自动重置它
getter/setter pairinherited
-
indexNotify
→ ValueNotifier<
int> -
no setterinherited
- lockObsUpdate ↔ bool
-
锁定响应式变量更新,将此变量设置为 true 后,可以避免任何外部因素意外地修改 obs
getter/setter pairinherited
- modelValue ↔ bool?
-
返回响应式原始数据
getter/setter pairinherited
- mounted → bool
-
Whether this State object is currently in a tree.
no setterinherited
-
obs
↔ Obs<
bool?> -
latefinalinherited
- overlayEntry ↔ ElOverlayEntry?
-
弹出层实例对象
getter/setter pairinherited
-
overlayEntryKey
→ GlobalKey<
State< StatefulWidget> > -
finalinherited
- overlayId → Object
-
弹出层 id 唯一标识符,默认为 hashCode
no setterinherited
- overlayState → ElOverlayState
-
管理弹出层的 Overlay 对象
no setterinherited
- refreshOverlay ↔ VoidCallback?
-
刷新弹窗内容,此方法会触发 buildOverlay 重建
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- widget → ElDialog
-
The current configuration.
no setterinherited
Methods
-
activate(
) → void -
Called when this object is reinserted into the tree after having been
removed via deactivate.
inherited
-
bindingListener(
) → void -
执行 initState 初始化时绑定响应式监听,通过 modelValue 来驱动弹窗的显示、隐藏
inherited
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
inherited
-
buildOverlay(
BuildContext context) → Widget -
构建 overlay 内容小部件
override
-
createSimulation(
{required bool forward}) → Simulation? -
使用弹簧动画来驱动 animationController
inherited
-
createTicker(
TickerCallback onTick) → Ticker -
Creates a ticker with the given callback.
inherited
-
deactivate(
) → void -
Called when this object is removed from the tree.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
didChangeDependencies(
) → void -
Called when a dependency of this State object changes.
inherited
-
didUpdateWidget(
covariant ElDialog oldWidget) → void -
Called whenever the widget configuration changes.
inherited
-
dispose(
) → void -
Called when this object is removed from the tree permanently.
inherited
-
forward(
) → TickerFuture -
前进动画
inherited
-
initState(
) → void -
Called when this object is inserted into the tree.
inherited
-
insertOverlay(
) → void -
插入弹出层
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notify(
) → void -
强制触发响应变更,ValueNotifier 有 2 种情况无法自动响应副作用函数:
inherited
-
obsBuild(
BuildContext context) → Widget -
监听 obs 变量更新,重建 obsBuilder 代码块
inherited
-
obsBuilder(
BuildContext context) → Widget -
构建响应式小部件,当响应式变量发生更新时,会自动重建此方法
inherited
-
onInsert(
) → void -
inherited
-
onRemove(
) → void -
inherited
-
reassemble(
) → void -
Called whenever the application is reassembled during debugging, for
example during hot reload.
inherited
-
removeOverlay(
) → void -
移除弹出层
inherited
-
reverse(
) → TickerFuture -
返回动画
inherited
-
reverseCallback(
) → void -
返回动画回调
inherited
-
setState(
VoidCallback fn) → void -
Notify the framework that the internal state of this object has changed.
inherited
-
showOverlay(
) → void -
当 overlayEntry 还存在时,可以调用此方法直接显示弹出层,通常有 2 种情况会调用它:
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toggle(
) → void -
切换显示、隐藏弹窗
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited