WindowInterface class

Only supports Windows platform.

Constructors

WindowInterface()

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
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

getFullScreen() Future<bool>
Return True if the window is in full-screen mode, else False
getWindowMaxSize() Future<Size?>
Get window maximal size
getWindowMinSize() Future<Size?>
Get window minimal size
getWindowPlacement() Future<WindowPlacement?>
Get window position and size
resetWindowMaxSize() Future<void>
Unset (don't limit) window maximal size
resetWindowMinSize() Future<void>
Unset (don't limit) window minimal size
setFullScreen(bool isFullScreen) Future<void>
Set window full-screen mode, effective immediately
setStayOnTop(bool isStayOnTop) Future<void>
Sets the window topmost mode, if set to True the window will appear sticky
setWindowMaxSize(int width, int height) Future<bool>
Set window maximal size, effective immediately
setWindowMinSize(int width, int height) Future<bool>
Set window minimal size, effective immediately
setWindowPlacement(WindowPlacement placement) Future<bool>
Set window position and size, effective immediately
startListen({void onPlacement(WindowPlacement)?}) → void
Subscript to window events
stopListen() → void
Cancel window events subscription
toggleFullScreen() Future<void>
Toggle window full-screen mode, effective immediately