total property

double get total

Total amount of items in cart.

Implementation

double get total => this.items.entries.fold<double>(
    0.0, (previous, item) => previous + item.key.amount * item.value);