cancel method Null safety
Cancel the underlying chunked stream.
If a future from readChunk or readStream is still pending then cancel behaves as if the underlying stream ended early. That is a future from readChunk may return a partial chunk smaller than the request size.
It is always safe to call cancel, even if the underlying stream was read to completion.
Future<void> cancel() async => await _input.cancel();