Order constructor

Order({
  1. required String date,
  2. required String invoiceNumber,
  3. required String paymentMethod,
  4. required List<Item> items,
  5. required double subtotal,
  6. required double tax,
  7. required double total,
})

Creates a new Order object with the given items, subtotal, tax, and total.

Implementation

Order({
  required this.date,
  required this.invoiceNumber,
  required this.paymentMethod,
  required this.items,
  required this.subtotal,
  required this.tax,
  required this.total,
});