Invoice constructor

const Invoice({
  1. double shippingCharges = 0,
  2. double extraDiscount = 0,
  3. required double total,
  4. required List<InvoiceLineItem> lineItems,
})

Implementation

const Invoice({
  this.shippingCharges = 0,
  this.extraDiscount = 0,
  required this.total,
  required this.lineItems,
});