copyWith method

CartEntity copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? title,
  4. String? description,
  5. String? checkoutText,
  6. String? shopId,
  7. BackgroundEntity? itemImageBackground,
  8. BackgroundEntity? itemDetailBackground,
  9. ActionEntity? checkoutAction,
  10. ActionEntity? backToShopAction,
  11. ActionEntity? openProductAction,
  12. 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,
  );
}