topErrors property

List<MapEntry<String, int>> get topErrors

Top 5 most common errors

Implementation

List<MapEntry<String, int>> get topErrors {
  final entries = _errorCounts.entries.toList()
    ..sort((a, b) => b.value.compareTo(a.value));
  return entries.take(5).toList();
}