BluetoothClassicConnectionEvent constructor

const BluetoothClassicConnectionEvent({
  1. required String deviceId,
  2. required BluetoothConnectionState state,
  3. String? error,
})

创建 Classic 连接状态事件。

参数:

  • deviceId:Classic 设备地址,无默认值。
  • state:连接状态,无默认值。
  • error:错误消息,默认 null

Implementation

const BluetoothClassicConnectionEvent({
  required this.deviceId,
  required this.state,
  this.error,
});