close method
Closes the sink.
Calling this method more than once is allowed, but does nothing.
Implementation
@override
void close() {
if (_closed) {
if (_throwOnClosed) {
throw StateError('Cannot perform operation after closing');
}
return;
}
_closed = true;
_exceptionStrategy.dispatch(_sinks, (sink) => sink.close());
}