Window class

Class containing information about a window and related functions.

Constructors

Window({required String title, required bool isActive, required int hWnd, String? exePath})
const
Window.fromMap(Map<String, dynamic> map)
factory

Properties

exePath → String?
Full path the to executable of the window (Path to the exe file).
final
hashCode → int
The hash code for this object.
no setterinherited
hWnd → int
Window ID.
final
isActive → bool
If the window is the active window or not.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String
Title of the window.
final

Methods

copyWith({String? title, bool? isActive, int? hWnd, String? exePath}) → Window
getExePath() → String?
Returns executable path of a window using its hWnd and updates current Window instance. Returns null if process does not exist.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show({bool forced = false}) → void
Bring window to the front with an optional forced flag.
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

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