ChromeWindows class

Properties

hashCode → int
The hash code for this object.
no setterinherited
isAvailable → bool
no setter
onBoundsChanged → EventStream<Window>
Fired when a window has been resized; this event is only dispatched when the new bounds are committed, and not for in-progress changes.
no setter
onCreated → EventStream<Window>
Fired when a window is created.
no setter
onFocusChanged → EventStream<int>
Fired when the currently focused window changes. Returns chrome.windows.WINDOW_ID_NONE if all Chrome windows have lost focus. Note: On some Linux window managers, WINDOW_ID_NONE is always sent immediately preceding a switch from one Chrome window to another.
no setter
onRemoved → EventStream<int>
Fired when a window is removed (closed).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
windowIdCurrent → int
The windowId value that represents the current window.
no setter
windowIdNone → int
The windowId value that represents the absence of a Chrome browser window.
no setter

Methods

create(CreateData? createData) → Future<Window?>
Creates (opens) a new browser window with any optional sizing, position, or default URL provided.
get(int windowId, QueryOptions? queryOptions) → Future<Window>
Gets details about a window.
getAll(QueryOptions? queryOptions) → Future<List<Window>>
Gets all windows.
getCurrent(QueryOptions? queryOptions) → Future<Window>
Gets the current window.
getLastFocused(QueryOptions? queryOptions) → Future<Window>
Gets the window that was most recently focused - typically the window 'on top'.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(int windowId) → Future<void>
Removes (closes) a window and all the tabs inside it.
toString() → String
A string representation of this object.
inherited
update(int windowId, UpdateInfo updateInfo) → Future<Window>
Updates the properties of a window. Specify only the properties that to be changed; unspecified properties are unchanged.

Operators

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