onValueReceived property

Stream<List<int>> get onValueReceived

this stream emits values:

  • anytime read() is called

Implementation

Stream<List<int>> get onValueReceived => FlutterBluePlusPlatform.instance.onDescriptorRead
    .where((p) => p.remoteId == remoteId)
    .where((p) => p.primaryServiceUuid == primaryServiceUuid)
    .where((p) => p.serviceUuid == serviceUuid)
    .where((p) => p.characteristicUuid == characteristicUuid)
    .where((p) => p.instanceId == instanceId)
    .where((p) => p.descriptorUuid == descriptorUuid)
    .where((p) => p.success == true)
    .map((p) => p.value);