InvoiceTotal constructor

InvoiceTotal({
  1. required double subtotal,
  2. required double vatAmount,
  3. required double grandTotal,
})

Constructs an InvoiceTotal with the provided amounts.

subtotal is the total amount before VAT is added. vatAmount is the total VAT amount. grandTotal is the total amount after VAT is included.

Implementation

InvoiceTotal({
  required this.subtotal,
  required this.vatAmount,
  required this.grandTotal,
});