BluetoothAdvertisingStateEvent constructor

const BluetoothAdvertisingStateEvent({
  1. required bool isAdvertising,
  2. int? errorCode,
  3. String? message,
})

创建广播状态事件。

参数:

  • isAdvertising:当前是否正在广播,无默认值。
  • errorCode:Android 广播错误码,默认 null
  • message:平台状态或错误消息,默认 null

Implementation

const BluetoothAdvertisingStateEvent({
  required this.isAdvertising,
  this.errorCode,
  this.message,
});