copyWith method

UnitOfMeasuresDetails copyWith({
  1. String? altUnit,
  2. String? material,
  3. String? altUnitIso,
  4. String? numerator,
  5. String? denominatr,
  6. String? eanUpc,
  7. String? eanCat,
  8. String? length,
  9. String? width,
  10. String? height,
  11. String? unitDim,
  12. String? unitDimIso,
  13. String? volume,
  14. String? volumeunit,
  15. String? volumeunitIso,
  16. String? grossWt,
  17. String? unitOfWt,
  18. String? unitOfWtIso,
  19. String? subUom,
  20. String? subUomIso,
  21. String? internalChar,
  22. String? uomsortnumber,
  23. bool? leadinguom,
  24. bool? valueduom,
  25. String? charUnit,
  26. String? charUnitIso,
  27. String? gtinVariant,
  28. String? netWeight,
  29. String? meAnzSub,
  30. String? ewmCwUomType,
})

Creates a copy of the current instance with optional new values.

Implementation

UnitOfMeasuresDetails copyWith({
  String? altUnit,
  String? material,
  String? altUnitIso,
  String? numerator,
  String? denominatr,
  String? eanUpc,
  String? eanCat,
  String? length,
  String? width,
  String? height,
  String? unitDim,
  String? unitDimIso,
  String? volume,
  String? volumeunit,
  String? volumeunitIso,
  String? grossWt,
  String? unitOfWt,
  String? unitOfWtIso,
  String? subUom,
  String? subUomIso,
  String? internalChar,
  String? uomsortnumber,
  bool? leadinguom,
  bool? valueduom,
  String? charUnit,
  String? charUnitIso,
  String? gtinVariant,
  String? netWeight,
  String? meAnzSub,
  String? ewmCwUomType,
}) {
  return UnitOfMeasuresDetails(
    altUnit: altUnit ?? this.altUnit,
    material: material ?? this.material,
    altUnitIso: altUnitIso ?? this.altUnitIso,
    numerator: numerator ?? this.numerator,
    denominatr: denominatr ?? this.denominatr,
    eanUpc: eanUpc ?? this.eanUpc,
    eanCat: eanCat ?? this.eanCat,
    length: length ?? this.length,
    width: width ?? this.width,
    height: height ?? this.height,
    unitDim: unitDim ?? this.unitDim,
    unitDimIso: unitDimIso ?? this.unitDimIso,
    volume: volume ?? this.volume,
    volumeunit: volumeunit ?? this.volumeunit,
    volumeunitIso: volumeunitIso ?? this.volumeunitIso,
    grossWt: grossWt ?? this.grossWt,
    unitOfWt: unitOfWt ?? this.unitOfWt,
    unitOfWtIso: unitOfWtIso ?? this.unitOfWtIso,
    subUom: subUom ?? this.subUom,
    subUomIso: subUomIso ?? this.subUomIso,
    internalChar: internalChar ?? this.internalChar,
    uomsortnumber: uomsortnumber ?? this.uomsortnumber,
    leadinguom: leadinguom ?? this.leadinguom,
    valueduom: valueduom ?? this.valueduom,
    charUnit: charUnit ?? this.charUnit,
    charUnitIso: charUnitIso ?? this.charUnitIso,
    gtinVariant: gtinVariant ?? this.gtinVariant,
    netWeight: netWeight ?? this.netWeight,
    meAnzSub: meAnzSub ?? this.meAnzSub,
    ewmCwUomType: ewmCwUomType ?? this.ewmCwUomType,
  );
}