copyWith method
ProductModel
copyWith({
- String? documentID,
- String? appId,
- String? title,
- String? about,
- double? price,
- double? weight,
- ShopModel? shop,
- List<
ProductImageModel> ? images, - PosSizeModel? posSize,
override
Implementation
@override
ProductModel copyWith({
String? documentID,
String? appId,
String? title,
String? about,
double? price,
double? weight,
ShopModel? shop,
List<ProductImageModel>? images,
PosSizeModel? posSize,
}) {
return ProductModel(
documentID: documentID ?? this.documentID,
appId: appId ?? this.appId,
title: title ?? this.title,
about: about ?? this.about,
price: price ?? this.price,
weight: weight ?? this.weight,
shop: shop ?? this.shop,
images: images ?? this.images,
posSize: posSize ?? this.posSize,
);
}