ProductData constructor
ProductData(
- String id,
- List<
StringData> name, { - bool visible = true,
- required List<
StringData> desc, - required List<
ImageData> gallery, - required List<
StringData> descTitle, - required List<
PriceData> price, - required Duration duration,
- required List<
String> category, - required List<
String> providers, - double tax = 0,
- List<
String> assetsCategory = const [], - List<
String> assetsProvider = const [], - List<
String> assetsGallery = const [], - int rating1 = 0,
- int rating2 = 0,
- int rating3 = 0,
- int rating4 = 0,
- int rating5 = 0,
- int countRating = 0,
- double rating = 0,
- double taxAdmin = 0,
- int favoritesCount = 0,
- required List<
AddonData> addon, - required DateTime timeModify,
- bool delete = false,
- double priceProduct = 0,
- double discPriceProduct = 0,
- required List<
GroupData> group, - String unit = "pcs",
- bool thisIsArticle = false,
- int countProduct = 0,
- String video = "",
- String videoType = "",
- 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,
});