LogStatistics constructor

LogStatistics({
  1. required int totalLogs,
  2. required Map<String, int> levelCounts,
  3. required Map<String, int> categoryCounts,
  4. Map<String, int>? tagCounts,
  5. DateTime? earliestLog,
  6. DateTime? latestLog,
})

Implementation

LogStatistics({
  required this.totalLogs,
  required this.levelCounts,
  required this.categoryCounts,
  Map<String, int>? tagCounts,
  this.earliestLog,
  this.latestLog,
}) : tagCounts = tagCounts ?? {};