onCharacteristicOperationReceived property
Stream<CharacteristicOperationReceivedEvent>
get
onCharacteristicOperationReceived
Event for when a characteristic operation of |type| to the characteristic respresented by |characteristicId| happened. |data| and |writeType| is expected to exist when |type| is write.
Implementation
Stream<CharacteristicOperationReceivedEvent>
get onCharacteristicOperationReceived => _client.onEvent
.where(
(event) =>
event.name == 'BluetoothEmulation.characteristicOperationReceived',
)
.map(
(event) =>
CharacteristicOperationReceivedEvent.fromJson(event.parameters),
);