CartModel constructor

const CartModel({
  1. required String productId,
  2. required String productName,
  3. List<String>? productImages,
  4. required List<ProductVariant> variants,
  5. @Default(1) int quantity,
  6. @Default(0.0) double discount,
  7. required String productDetails,
  8. Map<String, dynamic>? productMeta,
})

Implementation

const factory CartModel({
  required String productId,
  required String productName,
  List<String>? productImages,
  required List<ProductVariant> variants,
  @Default(1) int quantity,
  @Default(0.0) double discount,
  required String productDetails,
  Map<String, dynamic>? productMeta,
}) = _CartModel;