BluetoothGattDescriptor constructor
BluetoothGattDescriptor({})
创建 GATT 描述符。
参数:
uuid:描述符 UUID,无默认值。characteristicUuid:所属特征 UUID,默认null。value:描述符初始值,默认空 Uint8List。raw:原生完整字段,默认const <String, dynamic>{}。
Implementation
BluetoothGattDescriptor({
required this.uuid,
this.characteristicUuid,
Uint8List? value,
this.raw = const <String, dynamic>{},
}) : value = value ?? Uint8List(0);