copyWith method

ProductReference copyWith({
  1. int? id,
  2. int? planDuration,
  3. int? rentDuration,
  4. int? workDuration,
  5. int? numberOfItems,
  6. String? reference,
  7. String? description,
  8. String? pictureUrl,
  9. String? codeReference,
  10. int? categoryId,
  11. int? purchaseType,
  12. int? warrantyDuration,
  13. int? serialNumberFormatId,
  14. String? label,
})

Implementation

ProductReference copyWith({
  int? id,
  int? planDuration,
  int? rentDuration,
  int? workDuration,
  int? numberOfItems,
  String? reference,
  String? description,
  String? pictureUrl,
  String? codeReference,
  int? categoryId,
  int? purchaseType,
  int? warrantyDuration,
  int? serialNumberFormatId,
  String? label,
}) => ProductReference(
  id: id ?? this.id,
  planDuration: planDuration ?? this.planDuration,
  rentDuration: rentDuration ?? this.rentDuration,
  workDuration: workDuration ?? this.workDuration,
  numberOfItems: numberOfItems ?? this.numberOfItems,
  reference: reference ?? this.reference,
  description: description ?? this.description,
  pictureUrl: pictureUrl ?? this.pictureUrl,
  codeReference: codeReference ?? this.codeReference,
  categoryId: categoryId ?? this.categoryId,
  purchaseType: purchaseType ?? this.purchaseType,
  warrantyDuration: warrantyDuration ?? this.warrantyDuration,
  serialNumberFormatId: serialNumberFormatId ?? this.serialNumberFormatId,
  label: label ?? this.label,
);