YaruWindowState class

The state of a window.

Annotations

Constructors

YaruWindowState({bool? isActive, bool? isClosable, bool? isFullscreen, bool? isMaximizable, bool? isMaximized, bool? isMinimizable, bool? isMinimized, bool? isMovable, bool? isRestorable, String? title, bool? isVisible})
Creates a new YaruWindowState.
const
YaruWindowState.fromJson(Map<String, dynamic> json)
Creates a new YaruWindowState from a JSON object.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
isActive bool?
Whether the window is active.
final
isClosable bool?
Whether the window is closable.
final
isFullscreen bool?
Whether the window is fullscreen.
final
isMaximizable bool?
Whether the window is maximizable.
final
isMaximized bool?
Whether the window is maximized.
final
isMinimizable bool?
Whether the window is minimizable.
final
isMinimized bool?
Whether the window is minimized.
final
isMovable bool?
Whether the window is movable.
final
isRestorable bool?
Whether the window is restorable.
final
isVisible bool?
Whether the window is visible.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String?
The title of the window.
final

Methods

copyWith({bool? isActive, bool? isClosable, bool? isFullscreen, bool? isMaximizable, bool? isMaximized, bool? isMinimizable, bool? isMinimized, bool? isMovable, bool? isRestorable, String? title, bool? isVisible}) YaruWindowState
Copies the state with the specified fields replaced with new values.
merge(YaruWindowState? other) YaruWindowState
Merges the state with another YaruWindowState.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the state to a JSON object.
toString() String
A string representation of this object.
override

Operators

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