Window class

Constructors

Window({int? id, required bool focused, int? top, int? left, int? width, int? height, List<Tab>? tabs, required bool incognito, WindowType? type, WindowState? state, required bool alwaysOnTop, String? sessionId})
Window.fromJS(Window _wrapped)

Properties

alwaysOnTop bool
Whether the window is set to be always on top.
getter/setter pair
focused bool
Whether the window is currently the focused window.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
height int?
The height of the window, including the frame, in pixels. In some circumstances a window may not be assigned a height property; for example, when querying closed windows from the sessions API.
getter/setter pair
id int?
The ID of the window. Window IDs are unique within a browser session. In some circumstances a window may not be assigned an ID property; for example, when querying windows using the sessions API, in which case a session ID may be present.
getter/setter pair
incognito bool
Whether the window is incognito.
getter/setter pair
left int?
The offset of the window from the left edge of the screen in pixels. In some circumstances a window may not be assigned a left property; for example, when querying closed windows from the sessions API.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionId String?
The session ID used to uniquely identify a window, obtained from the sessions API.
getter/setter pair
state WindowState?
The state of this browser window.
getter/setter pair
tabs List<Tab>?
Array of tabs.Tab objects representing the current tabs in the window.
getter/setter pair
toJS → Window
no setter
top int?
The offset of the window from the top edge of the screen in pixels. In some circumstances a window may not be assigned a top property; for example, when querying closed windows from the sessions API.
getter/setter pair
type WindowType?
The type of browser window this is.
getter/setter pair
width int?
The width of the window, including the frame, in pixels. In some circumstances a window may not be assigned a width property; for example, when querying closed windows from the sessions API.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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