AlarmEvent class sealed
Something the host did to an alarm on its own.
These decisions are taken in contexts with no Flutter engine — a native
notification action, a full screen intent, the boot receiver — so they
cannot be reported by a callback at the time. The host records them durably
and the next Alarm.init() drains them, which is why an event can arrive
long after it happened.
Reaches applications on Alarm.events. Match on the subtype to know what
happened to the alarm, and read cause to know why.
- Implementers
Constructors
- AlarmEvent.fromWire(AlarmEventWire wire)
-
Builds the event described by
wire.factory
Properties
- cause → AlarmEventCause
-
Why the host did it.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
Id of the alarm this happened to.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setterinherited
- recordedAt → DateTime
-
When the host recorded this, which may be well before it was delivered.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true, thetoStringmethod will be overridden to output this instance'sprops.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