close method
override
Closes the sink.
Calling this method more than once is allowed, but does nothing.
Implementation
@override
Future<void> close() {
if (_addingStream) throw StateError('StreamSink is bound to a stream');
return super.close();
}