close method

Future<void> close()

Stops reading from the input stream.

Implementation

Future<void> close() async {
  if (_closed) return;
  _closed = true;
  await _input.close();
  _terminalMode?.restore();
  await _flushOutput();
}