initHardwareHandlerAndGetStream method

Stream<String> initHardwareHandlerAndGetStream()

Implementation

Stream<String> initHardwareHandlerAndGetStream() {
  _codeStreamController = StreamController();
  _barcodeStreamController = StreamController();
  _hardwareKeyboard.addHandler(_handleKey);
  _codeStreamSubscription = _listenToCodeStream();
  return _barcodeStreamController.stream.asBroadcastStream();
}