copyWith method
LineItem
copyWith(
{ - String? id,
- String? categoryId,
- String? name,
- String? description,
- int? quantity,
- String? gtin,
- String? imageUrl,
- String? brand,
- String? externalItemId,
- ItemAmount? itemAmount,
})
Implementation
LineItem copyWith({
String? id,
String? categoryId,
String? name,
String? description,
int? quantity,
String? gtin,
String? imageUrl,
String? brand,
String? externalItemId,
ItemAmount? itemAmount,
}) {
return LineItem(
id: id ?? this.id,
categoryId: categoryId ?? this.categoryId,
name: name ?? this.name,
description: description ?? this.description,
quantity: quantity ?? this.quantity,
gtin: gtin ?? this.gtin,
imageUrl: imageUrl ?? this.imageUrl,
brand: brand ?? this.brand,
externalItemId: externalItemId ?? this.externalItemId,
itemAmount: itemAmount ?? this.itemAmount,
);
}