clearLogs method
Clears all in-memory logs and the persisted file.
Implementation
Future<void> clearLogs() async {
_logs.clear();
_active.clear();
_idCounter = 0;
await _storage.clear();
_notify();
}
Clears all in-memory logs and the persisted file.
Future<void> clearLogs() async {
_logs.clear();
_active.clear();
_idCounter = 0;
await _storage.clear();
_notify();
}