copyWith method

RoomDimensions copyWith({
  1. double? length,
  2. double? width,
  3. double? height,
})

Creates a copy of this dimensions with modified values.

Implementation

RoomDimensions copyWith({
  double? length,
  double? width,
  double? height,
}) {
  return RoomDimensions(
    length: length ?? this.length,
    width: width ?? this.width,
    height: height ?? this.height,
  );
}