ChromeAlarms class

Properties

hashCode int
The hash code for this object.
no setterinherited
isAvailable bool
no setter
onAlarm EventStream<Alarm>
Fired when an alarm has elapsed. Useful for event pages. |alarm|: The alarm that has elapsed.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear(String? name) Future<bool>
Clears the alarm with the given name. |name|: The name of the alarm to clear. Defaults to the empty string.
clearAll() Future<bool>
Clears all alarms.
create(String? name, AlarmCreateInfo alarmInfo) Future<void>
Creates an alarm. Near the time(s) specified by alarmInfo, the onAlarm event is fired. If there is another alarm with the same name (or no name if none is specified), it will be cancelled and replaced by this alarm.
get(String? name) Future<Alarm?>
Retrieves details about the specified alarm. |name|: The name of the alarm to get. Defaults to the empty string.
getAll() Future<List<Alarm>>
Gets an array of all the alarms.
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