addWindow method
dynamic
addWindow({})
Implementation
addWindow({
required String title,
required Widget body,
Alignment? parentWidgetAlignment,
double? minWidth,
double? minHeight,
double? width,
double? height,
double? placementPadding,
double? x,
double? y,
Color? headerColor,
Color? bodyColor,
}) {
final windowState = WindowState(
key: UniqueKey(),
config: config,
title: title,
body: body,
headerColor: headerColor,
bodyColor: bodyColor,
minWidth: minWidth,
minHeight: minHeight,
height: height,
width: width,
x: x,
y: y,
);
_windows.add(windowState);
notifyListeners();
}