copyWith method
ItemCheck
copyWith({
- String? name,
- double? price,
- double? quantity,
- String? measurementUnit,
- PaymentObjectCheck? paymentObjectCheck,
Implementation
ItemCheck copyWith({
String? name,
double? price,
double? quantity,
String? measurementUnit,
PaymentObjectCheck? paymentObjectCheck,
}) {
return ItemCheck(
name: name ?? this.name,
price: price ?? this.price,
quantity: quantity ?? this.quantity,
measurementUnit: measurementUnit ?? this.measurementUnit,
paymentObjectCheck: paymentObjectCheck ?? this.paymentObjectCheck,
);
}