LineReader constructor
Only encodings that are a superset of ASCII are supported TODO(DrMarcII): Support arbitrary encodings
Implementation
LineReader(Stream /* <List<int> | int> */ stream,
{this.encoding = systemEncoding}) {
if (stream is Stdin) {
stdin.lineMode = false;
}
stream.listen(_listen,
onDone: _controller.close, onError: _controller.addError);
}