copyWith method
Implementation
ProductDisplayEntity copyWith({
String? documentID,
String? appId,
String? description,
BackgroundEntity? itemDetailBackground,
String? addToBasketText,
ActionEntity? buyAction,
String? shopId,
BackgroundEntity? background,
StorageConditionsEntity? conditions,
}) {
return ProductDisplayEntity(
appId: appId ?? this.appId,
description: description ?? this.description,
itemDetailBackground: itemDetailBackground ?? this.itemDetailBackground,
addToBasketText: addToBasketText ?? this.addToBasketText,
buyAction: buyAction ?? this.buyAction,
shopId: shopId ?? this.shopId,
background: background ?? this.background,
conditions: conditions ?? this.conditions,
);
}