characteristicValues property

  1. @override
Stream<BluetoothCharacteristicValue> get characteristicValues
override

实现 FlutterBluetoothPluginPlatform.characteristicValues

参数、默认值、平台差异和推荐值见平台接口文档。

Implementation

@override
Stream<BluetoothCharacteristicValue> get characteristicValues {
  return _eventStream
      .where((event) => event['type'] == 'characteristicValue')
      .map(BluetoothCharacteristicValue.fromMap);
}