ListingItem constructor Null safety

ListingItem(
  1. {double? rating,
  2. int? colorOptions,
  3. List<Size>? sizes,
  4. List<ColorModel>? colors,
  5. bool? preOrder,
  6. DateTime? availabilityDate,
  7. int? id,
  8. int? productId,
  9. String? productCode,
  10. String? imageUrl,
  11. String? imageThumbUrl,
  12. String? title,
  13. String? seoTitle,
  14. bool? isOutOfStock,
  15. double? price,
  16. double? finalPrice,
  17. bool? hasDiscount,
  18. double? discountValue,
  19. int? discountType,
  20. String? promoText,
  21. String? bogoPromoText,
  22. String? croppedImageUrl,
  23. bool? enableCropping,
  24. String? size,
  25. int? sizeId,
  26. String? colorHexaCode,
  27. String? color,
  28. int? colorId}
)

Implementation

ListingItem({
  this.rating,
  this.colorOptions,
  this.sizes,
  this.colors,
  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,
});