discount property
double
get
discount
Implementation
double get discount {
return _cartItemsList.fold(
0, (sum, item) => sum + (item.discount * item.quantity));
}
double get discount {
return _cartItemsList.fold(
0, (sum, item) => sum + (item.discount * item.quantity));
}