Product constructor

Product({
  1. String? productId = '',
  2. String? name = '',
  3. String? brand = '',
  4. String? categoryName = '',
  5. List<String>? productCategories = const [],
  6. double price = 0.0,
  7. double salePrice = 0.0,
  8. String? currency = '',
  9. String? productLink = '',
  10. String? productImage = '',
  11. Map<String, dynamic>? extras = const <String, dynamic>{},
})

Implementation

Product({
  this.productId = '',
  this.name = '',
  this.brand = '',
  this.categoryName = '',
  this.productCategories = const [],
  this.price = 0.0,
  this.salePrice = 0.0,
  this.currency = '',
  this.productLink = '',
  this.productImage = '',
  this.extras = const <String, dynamic>{},
});