WindowState constructor

WindowState({
  1. required Key key,
  2. required MdiConfig config,
  3. Color? headerColor,
  4. Color? bodyColor,
  5. double? minWidth,
  6. double? minHeight,
  7. double? height,
  8. double? width,
  9. double? x,
  10. double? y,
  11. String? title,
  12. required Widget body,
})

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 ?? "";