Product constructor

Product({
  1. required String name,
  2. required String sku,
  3. required double price,
  4. int? quantity,
  5. String? variant,
  6. String? category,
  7. String? brand,
  8. int? position,
  9. String? couponCode,
  10. Map<String, String?>? attributes,
})

Implementation

Product(
    {required this.name,
    required this.sku,
    required this.price,
    this.quantity,
    this.variant,
    this.category,
    this.brand,
    this.position,
    this.couponCode,
    this.attributes});