totalPerType property

Map<TicketType, double> get totalPerType

Implementation

Map<TicketType, double> get totalPerType {
  final map = <TicketType, double>{};
  for (final report in this) {
    for (final ticketType in TicketType.financialTypes) {
      if (map[ticketType] != null) {
        map[ticketType] = ((map[ticketType])! +
            report.financialFlows.sumTotalForType(ticketType));
      } else {
        map[ticketType] = report.financialFlows.sumTotalForType(ticketType);
      }
    }
  }
  return map;
}