copyWith method

ValidatedQuantity copyWith({
  1. UcumDecimal? value,
  2. String? unit,
})

Implementation

ValidatedQuantity copyWith({UcumDecimal? value, String? unit}) =>
    ValidatedQuantity(value: value ?? this.value, unit: unit ?? this.unit);