onDescriptorOperationReceived property

Stream<DescriptorOperationReceivedEvent> get onDescriptorOperationReceived

Event for when a descriptor operation of |type| to the descriptor respresented by |descriptorId| happened. |data| is expected to exist when |type| is write.

Implementation

Stream<DescriptorOperationReceivedEvent> get onDescriptorOperationReceived =>
    _client.onEvent
        .where(
          (event) =>
              event.name == 'BluetoothEmulation.descriptorOperationReceived',
        )
        .map(
          (event) =>
              DescriptorOperationReceivedEvent.fromJson(event.parameters),
        );