Invoice constructor

Invoice({
  1. required String customerName,
  2. required String invoiceNumber,
  3. required DateTime date,
  4. required List<InvoiceItem> items,
  5. required double tax,
  6. required double total,
  7. String? notes,
  8. String template = 'simple',
})

Implementation

Invoice({
  required this.customerName,
  required this.invoiceNumber,
  required this.date,
  required this.items,
  required this.tax,
  required this.total,
  this.notes,
  this.template = 'simple',
});