Line constructor

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

The cart line constructor

Implementation

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