LineReader constructor Null safety

LineReader(
  1. Stream stream,
  2. {Encoding encoding = systemEncoding}
)

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);
}