InvoiceItem constructor

InvoiceItem({
  1. required String description,
  2. required int quantity,
  3. required double unitPrice,
  4. required double taxableAmount,
  5. required double vatRate,
  6. required double vatAmount,
})

Constructs an InvoiceItem with the provided details.

description is a textual description of the item. quantity is the quantity of the item purchased. unitPrice is the price per unit of the item. taxableAmount is the taxable portion of the item, exclusive of VAT. vatRate is the VAT rate expressed as a percentage (e.g., 5% VAT is 5.0). vatAmount is the calculated VAT amount for the item.

Implementation

InvoiceItem({
  required this.description,
  required this.quantity,
  required this.unitPrice,
  required this.taxableAmount,
  required this.vatRate,
  required this.vatAmount,
});