copyWith method

ShopFrontEntity copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? title,
  4. String? description,
  5. String? shopId,
  6. double? size,
  7. double? cardElevation,
  8. double? cardAxisSpacing,
  9. BackgroundEntity? itemCardBackground,
  10. RgbEntity? addToCartColor,
  11. int? scrollDirection,
  12. ActionEntity? buyAction,
  13. ActionEntity? openProductAction,
  14. EdgeInsetsGeometryEntity? padding,
  15. StorageConditionsEntity? conditions,
})

Implementation

ShopFrontEntity copyWith({
  String? documentID,
  String? appId,
  String? title,
  String? description,
  String? shopId,
  double? size,
  double? cardElevation,
  double? cardAxisSpacing,
  BackgroundEntity? itemCardBackground,
  RgbEntity? addToCartColor,
  int? scrollDirection,
  ActionEntity? buyAction,
  ActionEntity? openProductAction,
  EdgeInsetsGeometryEntity? padding,
  StorageConditionsEntity? conditions,
}) {
  return ShopFrontEntity(
    appId: appId ?? this.appId,
    title: title ?? this.title,
    description: description ?? this.description,
    shopId: shopId ?? this.shopId,
    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,
  );
}