copyWith method

CheckStockContentModel copyWith({
  1. int? assetCount,
  2. int? recommendedQuantity,
  3. String? productCode,
  4. String? productName,
  5. String? productImage,
  6. bool? isRecommended,
  7. double? unitPrice,
})

Implementation

CheckStockContentModel copyWith(
    {int? assetCount,
    int? recommendedQuantity,
    String? productCode,
    String? productName,
    String? productImage,
    bool? isRecommended,
    double? unitPrice}) {
  return CheckStockContentModel(
    assetCount: assetCount ?? this.assetCount,
    productCode: productCode ?? this.productCode,
    productName: productName ?? this.productName,
    productImage: productImage ?? this.productImage,
    scanInOrderId: scanInOrderId ?? this.scanInOrderId,
    scanInUserId: scanInUserId ?? this.scanInUserId,
    unitPrice: unitPrice ?? this.unitPrice
  );
}