ProductDetailsModel constructor Null safety

ProductDetailsModel(
  1. {String? details,
  2. String? shortDescription,
  3. int? colorId,
  4. int? sizeId,
  5. List<Brand>? categories,
  6. Brand? brand,
  7. bool? isAddedtoWishlist,
  8. List<String>? imageList,
  9. int? maxQty,
  10. bool? reviewVisibility,
  11. bool? showOneClickOrder,
  12. int? minDeliveryPeriod,
  13. int? maxDeliveryPeriod,
  14. String? periodName,
  15. String? deliveryNote,
  16. int? remaining,
  17. String? productCode,
  18. String? skuCode,
  19. int? colorOptions,
  20. List<Feature>? features,
  21. double? rating,
  22. List<Size>? sizes,
  23. List<ColorModel>? colors,
  24. bool? preOrder,
  25. DateTime? availabilityDate,
  26. int? id,
  27. int? productId,
  28. String? imageUrl,
  29. String? imageThumbUrl,
  30. String? title,
  31. String? seoTitle,
  32. bool? isOutOfStock,
  33. double? price,
  34. double? finalPrice,
  35. bool? hasDiscount,
  36. double? discountValue,
  37. int? discountType,
  38. String? promoText,
  39. String? bogoPromoText,
  40. String? croppedImageUrl,
  41. bool? enableCropping,
  42. String? size,
  43. String? colorHexaCode,
  44. String? color}
)

Implementation

ProductDetailsModel({
  this.details,
  this.shortDescription,
  this.colorId,
  this.sizeId,
  this.categories,
  this.brand,
  this.isAddedtoWishlist,
  this.imageList,
  this.maxQty,
  this.reviewVisibility,
  this.showOneClickOrder,
  this.minDeliveryPeriod,
  this.maxDeliveryPeriod,
  this.periodName,
  this.deliveryNote,
  this.remaining,
  this.productCode,
  this.skuCode,
  this.colorOptions,
  this.features,
  this.rating,
  this.sizes,
  this.colors,
  this.preOrder,
  this.availabilityDate,
  this.id,
  this.productId,
  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.colorHexaCode,
  this.color,
});