removeSuccessfulEvent static method

Future<void> removeSuccessfulEvent(
  1. String eventId
)

Removes a successful event from the database

Implementation

static Future<void> removeSuccessfulEvent(String eventId) async {
  try {
    final events = _getAllEventsMap();
    events.remove(eventId);
    await _storage?.write(_storageKey, events);
    log('Event successfully removed: $eventId');
  } catch (e) {
    log('Error removing event: $e');
  }
}