BluetoothGattDescriptor.fromMap constructor
从原生 Map 创建 GATT 描述符。
参数:
map:原生描述符数据,无默认值。
Implementation
factory BluetoothGattDescriptor.fromMap(Map<String, dynamic> map) {
return BluetoothGattDescriptor(
uuid: map['uuid']?.toString() ?? '',
characteristicUuid: map['characteristicUuid']?.toString(),
value: _asByteList(map['value']),
raw: map,
);
}