copyWith method

  1. @override
CartModel copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? title,
  4. String? description,
  5. String? checkoutText,
  6. ShopModel? shop,
  7. BackgroundModel? itemImageBackground,
  8. BackgroundModel? itemDetailBackground,
  9. ActionModel? checkoutAction,
  10. ActionModel? backToShopAction,
  11. ActionModel? openProductAction,
  12. StorageConditionsModel? conditions,
})
override

Implementation

@override
CartModel copyWith({
  String? documentID,
  String? appId,
  String? title,
  String? description,
  String? checkoutText,
  ShopModel? shop,
  BackgroundModel? itemImageBackground,
  BackgroundModel? itemDetailBackground,
  ActionModel? checkoutAction,
  ActionModel? backToShopAction,
  ActionModel? openProductAction,
  StorageConditionsModel? conditions,
}) {
  return CartModel(
    documentID: documentID ?? this.documentID,
    appId: appId ?? this.appId,
    title: title ?? this.title,
    description: description ?? this.description,
    checkoutText: checkoutText ?? this.checkoutText,
    shop: shop ?? this.shop,
    itemImageBackground: itemImageBackground ?? this.itemImageBackground,
    itemDetailBackground: itemDetailBackground ?? this.itemDetailBackground,
    checkoutAction: checkoutAction ?? this.checkoutAction,
    backToShopAction: backToShopAction ?? this.backToShopAction,
    openProductAction: openProductAction ?? this.openProductAction,
    conditions: conditions ?? this.conditions,
  );
}