in lib/src/copy/io_sink.dart [82:95]
Future close() {
if (_isBound) {
throw StateError('StreamSink is bound to a stream');
}
if (!_isClosed) {
_isClosed = true;
if (_controllerInstance != null) {
_controllerInstance!.close();
} else {
_closeTarget();
}
}
return done;
}