merge method

Merges the state with another YaruWindowState.

Implementation

YaruWindowState merge(YaruWindowState? other) {
  return copyWith(
    isActive: other?.isActive,
    isClosable: other?.isClosable,
    isFullscreen: other?.isFullscreen,
    isMaximizable: other?.isMaximizable,
    isMaximized: other?.isMaximized,
    isMinimizable: other?.isMinimizable,
    isMinimized: other?.isMinimized,
    isMovable: other?.isMovable,
    isRestorable: other?.isRestorable,
    title: other?.title,
    isVisible: other?.isVisible,
  );
}