sumsMap property
Map<Currency, Money>
sumsMap
Implementation
Map<Currency, Money> get sumsMap => (() {
final sums = <Currency, Money>{};
postings.map((p) => p.effectiveMoney).forEach((money) {
if (money != null) {
sums.update(
money.currency,
(oldMoney) => oldMoney += money,
ifAbsent: () => money,
);
}
});
return sums;
})();