WindowListener class abstract mixin

The WindowListener mixin class is used to listen to window events. If this is used as a Global Listener using the WindowManagerPlus.addGlobalListener static method, the windowId parameter will be the ID of the window that emitted the event, otherwise, it will be always null.

Constructors

WindowListener.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onEventFromWindow(String eventName, int fromWindowId, dynamic arguments) Future
Event from other windows.
onWindowBlur([int? windowId]) → void
Emitted when the window loses focus.
onWindowClose([int? windowId]) → void
Emitted when the window is going to be closed.
onWindowDocked([int? windowId]) → void
Emitted when the window entered a docked state.
onWindowEnterFullScreen([int? windowId]) → void
Emitted when the window enters a full-screen state.
onWindowEvent(String eventName, [int? windowId]) → void
Emitted all events.
onWindowFocus([int? windowId]) → void
Emitted when the window gains focus.
onWindowLeaveFullScreen([int? windowId]) → void
Emitted when the window leaves a full-screen state.
onWindowMaximize([int? windowId]) → void
Emitted when window is maximized.
onWindowMinimize([int? windowId]) → void
Emitted when the window is minimized.
onWindowMove([int? windowId]) → void
Emitted when the window is being moved to a new position.
onWindowMoved([int? windowId]) → void
Emitted once when the window is moved to a new position.
onWindowResize([int? windowId]) → void
Emitted after the window has been resized.
onWindowResized([int? windowId]) → void
Emitted once when the window has finished being resized.
onWindowRestore([int? windowId]) → void
Emitted when the window is restored from a minimized state.
onWindowUndocked([int? windowId]) → void
Emitted when the window leaves a docked state.
onWindowUnmaximize([int? windowId]) → void
Emitted when the window exits from a maximized state.
toString() String
A string representation of this object.
inherited

Operators

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