copyWith method
Implementation
ProductEntity copyWith({
String? documentID,
String? appId,
String? title,
String? about,
double? price,
double? weight,
String? shopId,
List<ProductImageEntity>? images,
PosSizeEntity? posSize,
}) {
return ProductEntity(
appId: appId ?? this.appId,
title: title ?? this.title,
about: about ?? this.about,
price: price ?? this.price,
weight: weight ?? this.weight,
shopId: shopId ?? this.shopId,
images: images ?? this.images,
posSize: posSize ?? this.posSize,
);
}