logs property

List<BurtLog> get logs

The logs that should be shown, according to LogsOptionsViewModel.

Implementation

List<BurtLog> get logs {
  final device = options.deviceFilter;
  final logList = models.logs.logsForDevice(device);
  if (logList == null) return [];
  return logList.toList().reversed
    .where((log) => log.level.isAtLeast(options.levelFilter)).toList();
}