WindowState constructor
WindowState({})
Implementation
WindowState({
required this.key,
required this.config,
Color? headerColor,
Color? bodyColor,
double? minWidth,
double? minHeight,
double? height,
double? width,
double? x,
double? y,
String? title,
required this.body,
}) : headerColor = headerColor ?? config.defaultHeaderColor,
bodyColor = bodyColor ?? config.defaultBodyColor,
minWidth = minWidth ?? config.defaultWindowMinWidth,
minHeight = minHeight ?? config.defaultWindowMinHeight,
height = max((minHeight ?? config.defaultWindowMinHeight),
(height ?? config.defaultWindowHeight)),
width = max((minWidth ?? config.defaultWindowMinWidth),
(width ?? config.defaultWindowMinWidth)),
x = x ?? config.defaultX,
y = y ?? config.defaultY,
title = title ?? "";