stopAll static method

Future<void> stopAll()

Stops all the alarms.

Implementation

static Future<void> stopAll() async {
  final alarms = await getAlarms();

  iOS ? await IOSAlarm().stopAll() : await AndroidAlarm().stopAll();

  await AlarmStorage.unsaveAll();

  for (final alarm in alarms) {
    updateStream.add(alarm.id);
  }

  _scheduled.add(AlarmSet.empty());
  _ringing.add(AlarmSet.empty());
}