stream method

Stream<List<int>> stream()

Opens the response body stream.

Returns an empty stream when body is null.

Implementation

Stream<List<int>> stream() {
  return body?.open() ?? const Stream<List<int>>.empty();
}