A recent change to the Dart SDK updated HttpClientResponse
to implement Stream<Uint8List> rather than implementing
Stream<List<int>>.
This forwards-compatible change updates calls to
Stream.transform(StreamTransformer) to instead call the
functionally equivalent StreamTransformer.bind(Stream)
API, which puts the stream in a covariant position and
thus causes the SDK change to be non-breaking.
A recent change to the Dart SDK updated
HttpClientResponse
to implementStream<Uint8List>
rather than implementingStream<List<int>>
.This forwards-compatible change updates calls to
Stream.transform(StreamTransformer)
to instead call the functionally equivalentStreamTransformer.bind(Stream)
API, which puts the stream in a covariant position and thus causes the SDK change to be non-breaking.https://github.com/dart-lang/sdk/issues/36900