InvoiceLine constructor

InvoiceLine({
  1. required String name,
  2. required String quantity,
  3. required String price,
  4. required String total,
  5. required TaxDetails tax,
})

Constructs an InvoiceLine with the provided details.

name is the description of the item. quantity is the number of units for this item. price is the price per unit of the item. total is the total amount for the line item, including VAT. tax is the TaxDetails object that contains information about the tax rate and amount.

Implementation

InvoiceLine({
  required this.name,
  required this.quantity,
  required this.price,
  required this.total,
  required this.tax,
});