copyWith method

Dim copyWith({
  1. double? value,
  2. String? unit,
  3. bool? important,
})

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