BluetoothConnectionStateEvent class

BLE 连接状态事件。

Constructors

BluetoothConnectionStateEvent({required String deviceId, required BluetoothConnectionState state, int? status})
创建连接状态事件。
const
BluetoothConnectionStateEvent.fromMap(Map<String, dynamic> map)
从原生 Map 创建连接状态事件。
factory

Properties

deviceId String
设备标识。
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state BluetoothConnectionState
连接状态。
final
status int?
平台原生状态码,默认 null
final

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