copyWith method
StockDealerContentModel
copyWith(
{ - int? id,
- int? availableQuantity,
- int? recommendedQuantity,
- int? totalOrderedQuantity,
- String? productCode,
- String? productName,
- String? productImage,
- String? outletId,
- List<OrderDetailsStockModel>? orderDetails,
- bool? isRecommended,
})
Implementation
StockDealerContentModel copyWith(
{int? id,
int? availableQuantity,
int? recommendedQuantity,
int? totalOrderedQuantity,
String? productCode,
String? productName,
String? productImage,
String? outletId,
List<OrderDetailsStockModel>? orderDetails,
bool? isRecommended}) {
return StockDealerContentModel(
id: id ?? this.id,
availableQuantity: availableQuantity ?? this.availableQuantity,
recommendedQuantity: recommendedQuantity ?? this.recommendedQuantity,
totalOrderedQuantity: totalOrderedQuantity ?? this.totalOrderedQuantity,
orderDetails: orderDetails ?? this.orderDetails,
productCode: productCode ?? this.productCode,
productName: productName ?? this.productName,
productImage: productImage ?? this.productImage,
outletId: outletId ?? this.outletId,
isRecommended: isRecommended ?? this.isRecommended,
);
}