copyWith method

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

Implementation

WindowState copyWith({
  Key? key,
  double? minWidth,
  double? minHeight,
  double? height,
  double? width,
  double? x,
  double? y,
  String? title,
  Widget? body,
  Color? headerColor,
  Color? bodyColor,
}) {
  return WindowState(
      key: key ?? this.key,
      minWidth: minWidth ?? this.minWidth,
      minHeight: minHeight ?? this.minHeight,
      height: height ?? this.height,
      width: width ?? this.width,
      x: x ?? this.x,
      y: y ?? this.y,
      title: title ?? this.title,
      body: body ?? this.body,
      headerColor: headerColor ?? this.headerColor,
      bodyColor: bodyColor ?? this.bodyColor,
      config: config);
}