Order constructor

Order(
  1. {required int number,
  2. required DateTime date,
  3. DateTime? dateShipped,
  4. String? discountCode,
  5. required String message,
  6. required String email,
  7. required String phone,
  8. String? companyTitle,
  9. required String shippingCity,
  10. required String shippingCountry,
  11. required String shippingCountryCode,
  12. String? shippingInstructions,
  13. required String shippingName,
  14. required String shippingPostcode,
  15. required String shippingService,
  16. required String shippingState,
  17. required String shippingStreet,
  18. required double total,
  19. required double totalCCFee,
  20. required double totalDiscount,
  21. required double totalKickback,
  22. required double totalSeller,
  23. required double totalShipping,
  24. required double totalSubtotal,
  25. required double totalTindieFee,
  26. String? trackingCode,
  27. String? trackingUrl,
  28. required String payment,
  29. required bool refunded,
  30. required bool shipped,
  31. required List<Item> items}
)

Implementation

Order({
  required this.number,
  required this.date,
  this.dateShipped,
  this.discountCode,
  required this.message,
  required this.email,
  required this.phone,
  this.companyTitle,
  required this.shippingCity,
  required this.shippingCountry,
  required this.shippingCountryCode,
  this.shippingInstructions,
  required this.shippingName,
  required this.shippingPostcode,
  required this.shippingService,
  required this.shippingState,
  required this.shippingStreet,
  required this.total,
  required this.totalCCFee,
  required this.totalDiscount,
  required this.totalKickback,
  required this.totalSeller,
  required this.totalShipping,
  required this.totalSubtotal,
  required this.totalTindieFee,
  this.trackingCode,
  this.trackingUrl,
  required this.payment,
  required this.refunded,
  required this.shipped,
  required this.items,
});