Product constructor

Product({
  1. String? id,
  2. required String shopId,
  3. required String productType,
  4. required String name,
  5. required String imgUrl,
  6. required double price,
  7. required int? quantity,
  8. String? description,
  9. required bool available,
  10. int? rating,
  11. List<SpecialOption>? specialOptions,
  12. List<Review>? reviewList,
  13. bool? deliveryProvince,
  14. String? deliveryType,
})

Implementation

Product({
  this.id,
  required this.shopId,
  required this.productType,
  required this.name,
  required this.imgUrl,
  required this.price,
  required this.quantity,
  this.description,
  required this.available,
  this.rating,
  this.specialOptions,
  this.reviewList,
  this.deliveryProvince,
  this.deliveryType
});