hasAlarm static method

bool hasAlarm()

Whether at least one alarm is set.

Implementation

static bool hasAlarm() {
  final keys = prefs.getKeys();

  for (final key in keys) {
    if (key.startsWith(prefix)) return true;
  }

  return false;
}