BasketItem constructor

BasketItem({
  1. String? productId,
  2. String? productName,
  3. String? sku,
  4. String? productGroup,
  5. List<String> variants = const [],
  6. double price = 0.0,
  7. int quantity = 0,
})

Creates a new BasketItem with the provided parameters.

Implementation

BasketItem({
  this.productId,
  this.productName,
  this.sku,
  this.productGroup,
  this.variants = const [],
  this.price = 0.0,
  this.quantity = 0,
});