copyWith method
ProductDisplayModel
copyWith({
- String? documentID,
- String? appId,
- String? description,
- BackgroundModel? itemDetailBackground,
- String? addToBasketText,
- ActionModel? buyAction,
- ShopModel? shop,
- BackgroundModel? background,
- StorageConditionsModel? conditions,
override
Implementation
@override
ProductDisplayModel copyWith({
String? documentID,
String? appId,
String? description,
BackgroundModel? itemDetailBackground,
String? addToBasketText,
ActionModel? buyAction,
ShopModel? shop,
BackgroundModel? background,
StorageConditionsModel? conditions,
}) {
return ProductDisplayModel(
documentID: documentID ?? this.documentID,
appId: appId ?? this.appId,
description: description ?? this.description,
itemDetailBackground: itemDetailBackground ?? this.itemDetailBackground,
addToBasketText: addToBasketText ?? this.addToBasketText,
buyAction: buyAction ?? this.buyAction,
shop: shop ?? this.shop,
background: background ?? this.background,
conditions: conditions ?? this.conditions,
);
}