copyWith method

Length copyWith({
  1. num? value,
  2. String? unit,
  3. Uri? system,
  4. String? code,
})

Creates a copy of the Length instance and allows for non-destructive mutation.

Implementation

Length copyWith({
  num? value,
  String? unit,
  Uri? system,
  String? code,
}) =>
    Length(
      value: value ?? this.value,
      unit: unit ?? this.unit,
      system: system ?? this.system,
      code: code ?? this.code,
    );