BluetoothGattDescriptor constructor

const BluetoothGattDescriptor({
  1. required String uuid,
  2. String? characteristicUuid,
  3. List<int> value = const <int>[],
  4. Map<String, dynamic> raw = const <String, dynamic>{},
})

创建 GATT 描述符。

参数:

  • uuid:描述符 UUID,无默认值。
  • characteristicUuid:所属特征 UUID,默认 null
  • value:描述符初始值,默认 const <int>[]
  • raw:原生完整字段,默认 const <String, dynamic>{}

Implementation

const BluetoothGattDescriptor({
  required this.uuid,
  this.characteristicUuid,
  this.value = const <int>[],
  this.raw = const <String, dynamic>{},
});