getTotalPrice method
Implementation
double getTotalPrice() {
double total = 0;
for (var item in items) {
total += item.price;
}
return total;
}
double getTotalPrice() {
double total = 0;
for (var item in items) {
total += item.price;
}
return total;
}