ElPopupState<T extends ElPopup> class

Inheritance
Mixed-in types
Implementers

Constructors

ElPopupState()

Properties

animationController AnimationController
显示、隐藏弹窗动画控制器
latefinal
animationDuration Duration
声明默认的动画持续时间
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 pair
indexNotify ValueNotifier<int>
no setter
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 pair
overlayEntryKey GlobalKey<State<StatefulWidget>>
final
overlayId Object
弹出层 id 唯一标识符,默认为 hashCode
no setter
overlayState ElOverlayState
管理弹出层的 Overlay 对象
no setter
refreshOverlay VoidCallback?
刷新弹窗内容,此方法会触发 buildOverlay 重建
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
widget → T
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 来驱动弹窗的显示、隐藏
build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
buildOverlay(BuildContext context) Widget
构建 overlay 内容小部件
createSimulation({required bool forward}) Simulation?
使用弹簧动画来驱动 animationController
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.
override
didUpdateWidget(covariant T oldWidget) → void
Called whenever the widget configuration changes.
override
dispose() → void
Called when this object is removed from the tree permanently.
override
forward() TickerFuture
前进动画
initState() → void
Called when this object is inserted into the tree.
override
insertOverlay() → void
插入弹出层
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
构建响应式小部件,当响应式变量发生更新时,会自动重建此方法
override
onInsert() → void
onRemove() → void
reassemble() → void
Called whenever the application is reassembled during debugging, for example during hot reload.
inherited
removeOverlay() → void
移除弹出层
reverse() TickerFuture
返回动画
reverseCallback() → void
返回动画回调
setState(VoidCallback fn) → void
Notify the framework that the internal state of this object has changed.
inherited
showOverlay() → void
overlayEntry 还存在时,可以调用此方法直接显示弹出层,通常有 2 种情况会调用它:
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
切换显示、隐藏弹窗
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