byteStream method
Returns content body as a single-subscription byte stream.
Implementation
@override
Stream<List<int>> byteStream() {
try {
return file.openRead();
} on Exception catch (e) {
throw ClientException.openingStreamFailed(e);
}
}