copyWith method

  1. @override
ProductDisplayModel copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? description,
  4. BackgroundModel? itemDetailBackground,
  5. String? addToBasketText,
  6. ActionModel? buyAction,
  7. ShopModel? shop,
  8. BackgroundModel? background,
  9. 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,
  );
}