totalCostCents property

int get totalCostCents

Implementation

int get totalCostCents {
  int amount =
      priceItems.fold(0, (prev, item) => prev + item.totalPriceCents);
  if (taxRate != null) {
    amount += (amount * taxRate!).toInt();
  }
  return amount;
}