loadLogsFromDb static method

Future<void> loadLogsFromDb()

Implementation

static Future<void> loadLogsFromDb() async {
  final dbLogs = await LogDatabaseHelper().fetchAllLogs();
  _logs
    ..clear()
    ..addAll(dbLogs);
  _logController.add(List.from(_logs));
}