Quote.forClient constructor

Quote.forClient(
  1. Client client, {
  2. required List<Product> products,
})

Create an invoice for a client

Implementation

factory Quote.forClient(Client client, {required List<Product> products}) {
  return Quote(
    clientId: client.id,
    lineItems: (products).map((product) => product.toLineItem).toList(),
  );
}