BillItem constructor

BillItem({
  1. required String itemId,
  2. String? description,
  3. int? quantity,
  4. double? price,
})

Constructs a BillItem with the provided itemId. Optionally, you can provide a description, quantity, and price.

Implementation

BillItem({
  required this.itemId,
  this.description,
  this.quantity,
  this.price,
});