copyWith method

ProductDisplayEntity copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? description,
  4. BackgroundEntity? itemDetailBackground,
  5. String? addToBasketText,
  6. ActionEntity? buyAction,
  7. String? shopId,
  8. BackgroundEntity? background,
  9. StorageConditionsEntity? conditions,
})

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,
  );
}