copyWith method

WindowRectangleRow copyWith({
  1. int? id,
  2. Value<double?> width = const Value.absent(),
  3. Value<double?> height = const Value.absent(),
  4. Value<double?> dx = const Value.absent(),
  5. Value<double?> dy = const Value.absent(),
})

Implementation

WindowRectangleRow copyWith({
  int? id,
  Value<double?> width = const Value.absent(),
  Value<double?> height = const Value.absent(),
  Value<double?> dx = const Value.absent(),
  Value<double?> dy = const Value.absent(),
}) => WindowRectangleRow(
  id: id ?? this.id,
  width: width.present ? width.value : this.width,
  height: height.present ? height.value : this.height,
  dx: dx.present ? dx.value : this.dx,
  dy: dy.present ? dy.value : this.dy,
);