copyWith method
ProductContentModel
copyWith({
- int? id,
- String? productCode,
- String? productName,
- int? totalOrderedQuantity,
- int scannedQty = 0,
- List<
OrderDetails> ? orderDetails, - List<
SingleScannedModel> ? iccidList, - List<
RangeScannedModel> ? rangeList, - List<
int> ? scannedserialNums,
Implementation
ProductContentModel copyWith(
{int? id,
String? productCode,
String? productName,
int? totalOrderedQuantity,
int scannedQty = 0,
List<OrderDetails>? orderDetails,
List<SingleScannedModel>? iccidList,
List<RangeScannedModel>? rangeList,
List<int>? scannedserialNums}) {
return ProductContentModel(
id: id ?? this.id,
productCode: productCode ?? this.productCode,
productName: productName ?? this.productName,
orderDetails: orderDetails ?? this.orderDetails,
totalOrderedQuantity: totalOrderedQuantity ?? this.totalOrderedQuantity,
scannedQty: scannedQty,
iccidList: iccidList ?? this.iccidList,
rangeList: rangeList ?? this.rangeList,
scannedserialNums: scannedserialNums ?? this.scannedserialNums,
);
}