ProductViewModel constructor
ProductViewModel({
- required dynamic productId,
- String? title,
- String? url,
- String? mUrl,
- String? image,
- String? imageXS,
- String? imageS,
- String? imageM,
- String? imageL,
- String? imageXL,
- List<
String> ? additionalImages, - String? mainCategory,
- String? category,
- List<
String> ? categories, - num? price,
- num? oldPrice,
- num? specialPrice,
- int? lastUpdateTime,
- bool? inStock,
- int? stockCount,
- num? stockRatio,
- num? stockStatus,
- String? brand,
- String? gender,
- List<
String> ? labels, - List<
String> ? sizes, - List<
String> ? allSizes, - List<
String> ? colors, - int? publishTime,
- String? source,
- bool? noUpdate,
- List<
String> ? activeBanners, - String? groupId,
- num? scoreCount,
- int? reviewCount,
- String? subSource,
- Map<
String, dynamic> ? paramsList, - String? sessionId,
- String? userId,
- String? device,
- String? os,
- String? lang,
Implementation
ProductViewModel({
required this.productId,
this.title,
this.url,
this.mUrl,
this.image,
this.imageXS,
this.imageS,
this.imageM,
this.imageL,
this.imageXL,
this.additionalImages,
this.mainCategory,
this.category,
this.categories,
this.price,
this.oldPrice,
this.specialPrice,
this.lastUpdateTime,
this.inStock,
this.stockCount,
this.stockRatio,
this.stockStatus,
this.brand,
this.gender,
this.labels,
this.sizes,
this.allSizes,
this.colors,
this.publishTime,
this.source,
this.noUpdate,
this.activeBanners,
this.groupId,
this.scoreCount,
this.reviewCount,
this.subSource,
this.paramsList,
this.sessionId,
this.userId,
this.device,
this.os,
this.lang,
});