close method
Closes the sink.
The add method must not be called after this method.
Calling this method more than once is allowed, but does nothing.
Implementation
@override
void close() {
if (_closed) {
return;
}
_closed = true;
_sink.add(brotliCompress(_input.takeBytes(), options: options));
_sink.close();
}