close method
Closes the sink.
Calling this method more than once is allowed, but does nothing.
Implementation
@mustCallSuper
@override
void close() {
_controller.stream.drain();
_controller.close();
closeConnection?.call(this);
}
Closes the sink.
Calling this method more than once is allowed, but does nothing.
@mustCallSuper
@override
void close() {
_controller.stream.drain();
_controller.close();
closeConnection?.call(this);
}