getLogList static method

Future<List<LogEntity>> getLogList([
  1. DateTime? date
])

Implementation

static Future<List<LogEntity>> getLogList([DateTime? date]) async {
  try {
    final path = await _localPath;
    return Directory(path).listSync().map((e) => LogEntity(e.path)).toList();
  } catch (e) {
    return [];
  }
}