- @override
Tell the sink that no further data will be added.
Calling this method more than once is allowed, but does nothing.
The add
method must not be called after this method.
Source
@override Future close() async { if (!_outboundController.hasListener) { _outboundController.stream.listen(null); } if (!_inboundController.hasListener) { _inboundController.stream.listen(null); } await _outboundController.close(); await _inboundController.close(); }