BluetoothPhyEvent constructor

const BluetoothPhyEvent({
  1. required String deviceId,
  2. required BluetoothPhy txPhy,
  3. required BluetoothPhy rxPhy,
  4. int? status,
})

创建 PHY 事件。

参数:

  • deviceId:设备标识,无默认值。
  • txPhy:发送方向 PHY,无默认值。
  • rxPhy:接收方向 PHY,无默认值。
  • status:平台原生状态码,默认 null;主要 Android 有意义。

Implementation

const BluetoothPhyEvent({
  required this.deviceId,
  required this.txPhy,
  required this.rxPhy,
  this.status,
});