onValueReceived property
this stream emits values:
- anytime
read()
is called - anytime a notification arrives (if subscribed)
Implementation
Stream<List<int>> get onValueReceived => FlutterBluePlusPlatform.instance.onCharacteristicReceived
.where((p) => p.remoteId == remoteId)
.where((p) => p.serviceUuid == serviceUuid)
.where((p) => p.characteristicUuid == characteristicUuid)
.where((p) => p.primaryServiceUuid == primaryServiceUuid)
.where((p) => p.success == true)
.map((c) => c.value);