close method

void close([
  1. Object? reason
])

Closes the selected connection and destination writer.

Implementation

void close([Object? reason]) {
  _selected?.close(reason);
  unawaited(_closeOutput());
  _finish();
}