Skip to content
Snippets Groups Projects
  • Todd Volkert's avatar
    Prepare for Uint8List SDK breaking change (#1045) · 7a402e67
    Todd Volkert authored
    A recent change to the Dart SDK updated `HttpClientResponse`
    to implement `Stream<Uint8List>` rather than implementing
    `Stream<List<int>>`.
    
    This forwards-compatible chnage 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.
    
    https://github.com/dart-lang/sdk/issues/36900
    7a402e67
pubspec.yaml 838 B