hasAlarm static method
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;
}
Whether at least one alarm is set.
static bool hasAlarm() {
final keys = prefs.getKeys();
for (final key in keys) {
if (key.startsWith(prefix)) return true;
}
return false;
}