InvoiceLine constructor
InvoiceLine({
- required String name,
- required String quantity,
- required String price,
- required String total,
- 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,
});