summary property

Map<NiceViewChangeType, int> get summary

Categorized summary of changes.

Implementation

Map<NiceViewChangeType, int> get summary {
  final counts = <NiceViewChangeType, int>{};
  for (final c in changes) {
    counts[c.type] = (counts[c.type] ?? 0) + 1;
  }
  return counts;
}