copyWith method

  1. @override
ShopFrontModel copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? title,
  4. String? description,
  5. ShopModel? shop,
  6. double? size,
  7. double? cardElevation,
  8. double? cardAxisSpacing,
  9. BackgroundModel? itemCardBackground,
  10. RgbModel? addToCartColor,
  11. ScrollDirection? scrollDirection,
  12. ActionModel? buyAction,
  13. ActionModel? openProductAction,
  14. EdgeInsetsGeometryModel? padding,
  15. StorageConditionsModel? conditions,
})
override

Implementation

@override
ShopFrontModel copyWith({
  String? documentID,
  String? appId,
  String? title,
  String? description,
  ShopModel? shop,
  double? size,
  double? cardElevation,
  double? cardAxisSpacing,
  BackgroundModel? itemCardBackground,
  RgbModel? addToCartColor,
  ScrollDirection? scrollDirection,
  ActionModel? buyAction,
  ActionModel? openProductAction,
  EdgeInsetsGeometryModel? padding,
  StorageConditionsModel? conditions,
}) {
  return ShopFrontModel(
    documentID: documentID ?? this.documentID,
    appId: appId ?? this.appId,
    title: title ?? this.title,
    description: description ?? this.description,
    shop: shop ?? this.shop,
    size: size ?? this.size,
    cardElevation: cardElevation ?? this.cardElevation,
    cardAxisSpacing: cardAxisSpacing ?? this.cardAxisSpacing,
    itemCardBackground: itemCardBackground ?? this.itemCardBackground,
    addToCartColor: addToCartColor ?? this.addToCartColor,
    scrollDirection: scrollDirection ?? this.scrollDirection,
    buyAction: buyAction ?? this.buyAction,
    openProductAction: openProductAction ?? this.openProductAction,
    padding: padding ?? this.padding,
    conditions: conditions ?? this.conditions,
  );
}