DeviceEvent class

设备事件数据模型

Constructors

DeviceEvent({required DeviceEventType type, String? model, String? serialNumber, String? firmwareVersion, String? message, Map<String, dynamic> rawData = const {}})
const
DeviceEvent.fromMap(Map<String, dynamic> map)
从原始 Map 创建 DeviceEvent
factory

Properties

firmwareVersion String?
固件版本(连接时可用)
final
hashCode int
The hash code for this object.
no setterinherited
message String?
错误信息(发生错误时可用)
final
model String?
设备型号(连接时可用)
final
rawData Map<String, dynamic>
原始事件数据
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serialNumber String?
设备序列号(连接时可用)
final
type DeviceEventType
事件类型
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