Window class


Window({String id = "default", WindowConfig? config})
Window.fromMap(Map? map)


config WindowConfig?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pair
pixelRadio double?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
system SystemConfig?
getter/setter pair


applyMap(Map? map) Window
close({bool force = false}) Future<bool?>
create({bool start = false}) Future<Window?>
createChildWindow(String? id, WindowConfig config, {bool start = false, Window? window}) Future<Window?>
create child window just method shoudld only called in window engine
hide() Future<bool?>
launchMainActivity() Future<bool>
launch main activity
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
on(EventType type, WindowListener callback) Window
on register callback to listener
onData(OnDataHanlder handler) Window
on data to receive data from other shared maybe same like event handler but one window in engine can only have one data handler to make sure data not be comsumed multiple times.
share(dynamic data, {String name = "default"}) Future
share data with current window send data use current window id as target id and get value return
show({bool visible = true}) Future<bool?>
start() Future<bool?>
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
update(WindowConfig cfg) Future<bool>


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

Static Methods

of(BuildContext context) Window?
of extact window object window from context The data from the closest instance of this class that encloses the given context.
sync() Future<Map?>