allValues property
Return a stream of all input values regardless whether the new value is different than the previous value.
Implementation
@override
Stream<bool> get allValues {
if (_valuesController != null) {
throw GpioException(
'cancel existing values or allValues stream'
' before calling values or allValues again',
physicalPin);
}
_valuesController = StreamController(onListen: () {
gpio._rspHandler.pollingMap[bcmGpioPin] = this;
gpio._sendPort.send(comm.startPollingCmd(bcmGpioPin));
}, onCancel: () {
gpio._sendPort.send(comm.stopPollingCmd(bcmGpioPin));
gpio._rspHandler.pollingMap.remove(bcmGpioPin);
_valuesController = null;
});
return _valuesController!.stream;
}