HardwareEvent class

Common structure for all hardware events emitted by the SDK. This acts as the base data transfer object for the unified stream.

Constructors

HardwareEvent({required String module, required String type, required dynamic data, required DateTime timestamp})
Constructs a HardwareEvent.

Properties

data → dynamic
The payload of the event, usually a Map or specialized model data.
final
hashCode → int
The hash code for this object.
no setterinherited
module → String
The hardware subsystem emitting the event (e.g., 'camera', 'gps').
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timestamp → DateTime
Precise timestamp when the event was generated.
final
type → String
The type of event (e.g., 'data', 'error', 'status').
final

Methods

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

Operators

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