getTotalPrice method

double getTotalPrice()

Implementation

double getTotalPrice() {
  double total = 0;

  for (var item in items) {
    total += item.price;
  }

  return total;
}