byteStream method

  1. @override
Stream<List<int>> byteStream()
override

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);
  }
}