copyWith method
CartEntity
copyWith({
- String? documentID,
- String? appId,
- String? title,
- String? description,
- String? checkoutText,
- String? shopId,
- BackgroundEntity? itemImageBackground,
- BackgroundEntity? itemDetailBackground,
- ActionEntity? checkoutAction,
- ActionEntity? backToShopAction,
- ActionEntity? openProductAction,
- StorageConditionsEntity? conditions,
Implementation
CartEntity copyWith({
String? documentID,
String? appId,
String? title,
String? description,
String? checkoutText,
String? shopId,
BackgroundEntity? itemImageBackground,
BackgroundEntity? itemDetailBackground,
ActionEntity? checkoutAction,
ActionEntity? backToShopAction,
ActionEntity? openProductAction,
StorageConditionsEntity? conditions,
}) {
return CartEntity(
appId: appId ?? this.appId,
title: title ?? this.title,
description: description ?? this.description,
checkoutText: checkoutText ?? this.checkoutText,
shopId: shopId ?? this.shopId,
itemImageBackground: itemImageBackground ?? this.itemImageBackground,
itemDetailBackground: itemDetailBackground ?? this.itemDetailBackground,
checkoutAction: checkoutAction ?? this.checkoutAction,
backToShopAction: backToShopAction ?? this.backToShopAction,
openProductAction: openProductAction ?? this.openProductAction,
conditions: conditions ?? this.conditions,
);
}