clearAllPendingEvents static method
Clears all pending events (useful for testing or reset)
Implementation
static Future<void> clearAllPendingEvents() async {
try {
await _storage?.remove(_storageKey);
log('All pending events have been removed');
} catch (e) {
log('Error clearing pending events: $e');
}
}