ProductData constructor

ProductData(
  1. String id,
  2. List<StringData> name, {
  3. bool visible = true,
  4. required List<StringData> desc,
  5. required List<ImageData> gallery,
  6. required List<StringData> descTitle,
  7. required List<PriceData> price,
  8. required Duration duration,
  9. required List<String> category,
  10. required List<String> providers,
  11. double tax = 0,
  12. List<String> assetsCategory = const [],
  13. List<String> assetsProvider = const [],
  14. List<String> assetsGallery = const [],
  15. int rating1 = 0,
  16. int rating2 = 0,
  17. int rating3 = 0,
  18. int rating4 = 0,
  19. int rating5 = 0,
  20. int countRating = 0,
  21. double rating = 0,
  22. double taxAdmin = 0,
  23. int favoritesCount = 0,
  24. required List<AddonData> addon,
  25. bool unavailable = false,
  26. required DateTime timeModify,
  27. bool delete = false,
  28. double priceProduct = 0,
  29. double discPriceProduct = 0,
  30. required List<GroupData> group,
  31. String unit = "pcs",
  32. bool thisIsArticle = false,
  33. int countProduct = 0,
  34. String video = "",
  35. String videoType = "",
  36. int stock = 0,
})

Implementation

ProductData(this.id, this.name, {this.visible = true, required this.desc,
  required this.gallery, required this.descTitle, required this.price,
  required this.duration, required this.category, required this.providers, this.tax = 0,
  this.assetsCategory = const [], this.assetsProvider = const [], this.assetsGallery = const [],
  this.rating1 = 0, this.rating2 = 0, this.rating3 = 0, this.rating4 = 0, this.rating5 = 0,
  this.countRating = 0, this.rating = 0, this.taxAdmin = 0, this.favoritesCount = 0, required this.addon,
  this.unavailable = false, required this.timeModify, this.delete = false,
  this.priceProduct = 0, this.discPriceProduct = 0, required this.group,
  this.unit = "pcs", this.thisIsArticle = false, this.countProduct = 0,
  this.video = "", this.videoType = "", this.stock = 0,
});