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