PriceItem constructor

PriceItem({
  1. required String name,
  2. String? description,
  3. required int quantity,
  4. required int itemCostCents,
  5. bool canEditQuantity = true,
  6. Widget? image,
})

Class object containing required information to display in the checkout

This class holds the name, description, quantity and cost of items to be displayed on the drop down menu within the checkout page.

Implementation

PriceItem(
    {required this.name,
    this.description,
    required int quantity,
    required this.itemCostCents,
    this.canEditQuantity = true,
    this.image})
    : _quantity = quantity;