baskeTotalCost method

num baskeTotalCost(
  1. num discount,
  2. num markup
)

Implementation

num baskeTotalCost(num discount, num markup) {
  var worth = 0;
  for (final proxy in toSet()) {
    worth += (proxy.cost * proxy.minimumUnitPerBasket).round();
  }
  return worth - discount + markup;
}