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