UIWindowManagerState class

Inheritance
Implemented types

Constructors

UIWindowManagerState()

Properties

childMap Map<Widget, List<Widget>>
getter/setter pair
children List<Widget>
getter/setter pair
context BuildContext
The location in the tree where this widget builds.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
levels List<int>
getter/setter pair
mounted bool
Whether this State object is currently in a tree.
no setterinherited
results Map<Widget, Completer>
results 和childMap使用相同的key,都是用真正的widget对象,即不包含PositionableWidget的对象; 在show和remove函数中,如果参数widget是PositionableWidget,会自动转换为child;作为key; 方便避免show时有PositionableWidget,remove时没有的情况;
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
widget UIWindowManager
The current configuration.
no setterinherited

Methods

activate() → void
Called when this object is reinserted into the tree after having been removed via deactivate.
inherited
build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
changeIndex(Widget child) → void
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 UIWindowManager oldWidget) → void
Called whenever the widget configuration changes.
inherited
dispose() → void
Called when this object is removed from the tree permanently.
inherited
initState() → void
Called when this object is inserted into the tree.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reassemble() → void
Called whenever the application is reassembled during debugging, for example during hot reload.
inherited
removeTop() → void
override
removeWidget(Widget widget, {dynamic result}) → void
override
setState(VoidCallback fn) → void
Notify the framework that the internal state of this object has changed.
inherited
showAlert(AlertWidget widget, {int defaultValue = 0, bool barrierDismissible = true, Color? barrierColor = Colors.black54}) Future<int?>
override
showBy(Widget widget, ContextGetter contextGetter) → void
showBy基本都show菜单等,所以暂时不提供返回值
override
showDlg<T>(Widget widget, {bool barrierDismissible = true, Color? barrierColor = Colors.black54, dynamic result}) Future<T?>
var app1 = await widget.manager.showDlg;则系统认为T是Object? var app1; app1 = await widget.manager.showDlg;则系统认为T是dynamic; App app1 = await widget.manager.showDlg;则系统认为T是Future
override
showWidget<T>(Widget widget, {Widget? background, int level = 0, bool dragAble = false, double? top, double? left, double? right, double? bottom, bool indexAble = false, bool edgeAble = false}) Future<T?>
override
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
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
totast(String content, [int timeoutSeconds = 3]) → void
自动弹出totast; 当内容比较多时,自动往下排; 定时消失时,自动网上移动;
override
update() → void

Operators

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

Static Methods

of(BuildContext context) UIWindowManagerState