AppWindowDto class
A data transfer object representing the active window information.
On Windows:
- windowTitle contains the title of the active window.
- appName contains the name of the application associated with the active window.
On macOS:
- Both windowTitle and appName contain the application name, as macOS does not differentiate between the window title and the application name.
Example:
final activeWindow = AppWindowDto(appName: "chrome.exe", windowTitle: "Google - Chrome");
print(activeWindow); // Output: Window title: Google - Chrome. AppName chrome.exe
Constructors
- AppWindowDto.new({required String appName, required String windowTitle})
- Constructs an instance of AppWindowDto.
Properties
- appName → String
-
The name of the application associated with the active window.
final
- hashCode → int
-
Returns a hash code for the AppWindowDto object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- windowTitle → String
-
The title of the active window.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns a string representation of the active window details.
override
Operators
-
operator ==(
Object other) → bool -
Checks if two AppWindowDto objects are equal.
override