PowerStateChangeEvent class

Power state change event.

Emitted when the device's power state changes significantly.

Constructors

PowerStateChangeEvent({required PowerState previous, required PowerState current, required PowerStateChangeType changeType, DateTime? timestamp})
Creates a power state change event.
PowerStateChangeEvent.fromMap(JsonMap map)
Creates from a map.
factory

Properties

changeType PowerStateChangeType
What changed.
final
current PowerState
Current power state.
final
hashCode int
The hash code for this object.
no setterinherited
previous PowerState
Previous power state.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DateTime
Timestamp of the change.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() JsonMap
Converts to a JSON-serializable map.
toString() String
A string representation of this object.
inherited

Operators

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