copyWith method
CartItemModel
copyWith({
- String? documentID,
- int? amount,
- String? appId,
- ProductModel? product,
override
Implementation
@override
CartItemModel copyWith({
String? documentID,
int? amount,
String? appId,
ProductModel? product,
}) {
return CartItemModel(
documentID: documentID ?? this.documentID,
amount: amount ?? this.amount,
appId: appId ?? this.appId,
product: product ?? this.product,
);
}