OrderItem constructor Null safety

OrderItem(
  1. {int? qty,
  2. int? id,
  3. int? productId,
  4. String? productCode,
  5. String? imageUrl,
  6. String? imageThumbUrl,
  7. String? title,
  8. String? seoTitle,
  9. bool? isOutOfStock,
  10. double? price,
  11. double? finalPrice,
  12. bool? hasDiscount,
  13. double? discountValue,
  14. int? discountType,
  15. String? promoText,
  16. String? bogoPromoText,
  17. String? croppedImageUrl,
  18. bool? enableCropping,
  19. String? size,
  20. int? sizeId,
  21. String? colorHexaCode,
  22. String? color,
  23. int? colorId}
)

Implementation

OrderItem({
  this.qty,
  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,
});