unsaveAll static method

Future<void> unsaveAll()

Removes all alarms from local storage.

Implementation

static Future<void> unsaveAll() async {
  await _waitUntilInitialized();

  final keys = _prefs.getKeys();
  for (final key in keys) {
    if (key.startsWith(prefix)) {
      await _prefs.remove(key);
    }
  }
}