copyWith method
CartModel
copyWith({
- String? documentID,
- String? appId,
- String? title,
- String? description,
- String? checkoutText,
- ShopModel? shop,
- BackgroundModel? itemImageBackground,
- BackgroundModel? itemDetailBackground,
- ActionModel? checkoutAction,
- ActionModel? backToShopAction,
- ActionModel? openProductAction,
- StorageConditionsModel? conditions,
override
Implementation
@override
CartModel copyWith({
String? documentID,
String? appId,
String? title,
String? description,
String? checkoutText,
ShopModel? shop,
BackgroundModel? itemImageBackground,
BackgroundModel? itemDetailBackground,
ActionModel? checkoutAction,
ActionModel? backToShopAction,
ActionModel? openProductAction,
StorageConditionsModel? conditions,
}) {
return CartModel(
documentID: documentID ?? this.documentID,
appId: appId ?? this.appId,
title: title ?? this.title,
description: description ?? this.description,
checkoutText: checkoutText ?? this.checkoutText,
shop: shop ?? this.shop,
itemImageBackground: itemImageBackground ?? this.itemImageBackground,
itemDetailBackground: itemDetailBackground ?? this.itemDetailBackground,
checkoutAction: checkoutAction ?? this.checkoutAction,
backToShopAction: backToShopAction ?? this.backToShopAction,
openProductAction: openProductAction ?? this.openProductAction,
conditions: conditions ?? this.conditions,
);
}