input property

  1. @override
Stream<List<int>> get input
override

Stream of raw input bytes from the terminal.

This is primarily used by the TUI runtime for async input handling. For synchronous input, use readByte or readLine.

Implementation

@override
Stream<List<int>> get input {
  _inputController ??= StreamController<List<int>>.broadcast(
    onListen: _startInputListener,
    onCancel: _stopInputListener,
  );
  return _inputController!.stream;
}