CartItemModel constructor Null safety

CartItemModel(
  1. {int? maxQty,
  2. int? imageId,
  3. bool? freeBogo,
  4. dynamic discountBogoid,
  5. bool? addedForDiscountBogo,
  6. int? stock,
  7. int? qty,
  8. int? minDeliveryPeriod,
  9. int? maxDeliveryPeriod,
  10. String? periodName,
  11. String? deliveryNote,
  12. bool? preOrder,
  13. String? availabilityDate,
  14. int? id,
  15. int? productId,
  16. dynamic productCode,
  17. String? imageUrl,
  18. String? imageThumbUrl,
  19. String? title,
  20. String? seoTitle,
  21. bool? isOutOfStock,
  22. double? price,
  23. double? finalPrice,
  24. bool? hasDiscount,
  25. double? discountValue,
  26. int? discountType,
  27. String? promoText,
  28. String? bogoPromoText,
  29. String? croppedImageUrl,
  30. bool? enableCropping,
  31. String? size,
  32. int? sizeId,
  33. String? colorHexaCode,
  34. String? color,
  35. int? colorId}
)

Implementation

CartItemModel({
  this.maxQty,
  this.imageId,
  this.freeBogo,
  this.discountBogoid,
  this.addedForDiscountBogo,
  this.stock,
  this.qty,
  this.minDeliveryPeriod,
  this.maxDeliveryPeriod,
  this.periodName,
  this.deliveryNote,
  this.preOrder,
  this.availabilityDate,
  this.id,
  this.productId,
  this.productCode,
  this.imageUrl,
  this.imageThumbUrl,
  this.title,
  this.seoTitle,
  this.isOutOfStock,
  this.price,
  this.finalPrice,
  this.hasDiscount,
  this.discountValue,
  this.discountType,
  this.promoText,
  this.bogoPromoText,
  this.croppedImageUrl,
  this.enableCropping,
  this.size,
  this.sizeId,
  this.colorHexaCode,
  this.color,
  this.colorId,
});