clearLogs method
Clears all log entries.
Implementation
Future<void> clearLogs() async {
// Ensure all pending tasks are completed
await Future.wait(_pendingTasks.keys);
_pendingTasks.clear();
_initializeLogFile();
}
Clears all log entries.
Future<void> clearLogs() async {
// Ensure all pending tasks are completed
await Future.wait(_pendingTasks.keys);
_pendingTasks.clear();
_initializeLogFile();
}