Line constructor

Line({
  1. String? id,
  2. int? quantity,
  3. CartLineCost? cost,
  4. ProductVariant? merchandise,
  5. String? variantId,
  6. List<CartDiscountAllocation?>? discountAllocations,
})

The cart line constructor

Implementation

factory Line({
  String? id,
  int? quantity,
  CartLineCost? cost,
  ProductVariant? merchandise,
  String? variantId,
  List<CartDiscountAllocation?>? discountAllocations,
}) = _Line;