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