copyWith method
Creates a copy of this dimension with optional changes.
Implementation
Dim copyWith({
double? value,
String? unit,
bool? important,
}) {
return Dim(
value ?? this.value,
unit: unit ?? this.unit,
important: important ?? this.important,
);
}