copyWith method
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,
);
}