AlarmStorage class

Constructors

AlarmStorage()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

prefs ↔ SharedPreferences
getter/setter pair

Static Methods

alarmActiveChange(int id, bool active) Future<bool>
deleteAlarm(int alarmId) Future<bool>
getAlarm(int alarmId) AlarmModel?
getAlarmRinging() Future<List<String>>
getNotificationOnAppKillBody() String
Returns notification on app kill body.
getNotificationOnAppKillTitle() String
Returns notification on app kill title.
getSavedAlarms() List<AlarmModel>
Returns all alarms info from local storage in the case app is terminated and we need to restore previously scheduled alarms.
getSavedAlarmsNumber() Future<int>
hasAlarm() bool
Wether at least one alarm is set.
init() Future<void>
removeAlarmRinging() Future<bool>
saveAlarm(AlarmModel alarmModel) Future<void>
Saves alarm info in local storage so we can restore it later in the case app is terminated.
saveIsAlarmRinging(int id) Future<void>
setNotificationContentOnAppKill(String title, String body) Future<void>
Saves on app kill notification custom title and body.
unsaveAlarm(int id) Future<void>
Removes alarm from local storage.