Cart constructor

Cart({
  1. String? createdAt,
  2. String? currency,
  3. int? discountCents,
  4. String? email,
  5. String? id,
  6. List<CartItem> items = const [],
  7. int? lineTotalCents,
  8. String? order,
  9. int? shippingCents,
  10. String? status,
  11. String? store,
  12. int? subtotalCents,
  13. int? taxCents,
  14. int? totalCents,
  15. String? updatedAt,
  16. String? user,
})

Returns a new Cart instance.

Implementation

Cart({
  this.createdAt,
  this.currency,
  this.discountCents,
  this.email,
  this.id,
  this.items = const [],
  this.lineTotalCents,
  this.order,
  this.shippingCents,
  this.status,
  this.store,
  this.subtotalCents,
  this.taxCents,
  this.totalCents,
  this.updatedAt,
  this.user,
});