We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a031db commit c660daeCopy full SHA for c660dae
lib/src/byte_stream.dart
@@ -13,7 +13,7 @@ class ByteStream extends StreamView<List<int>> {
13
/// Returns a single-subscription byte stream that will emit the given bytes
14
/// in a single chunk.
15
factory ByteStream.fromBytes(List<int> bytes) =>
16
- ByteStream(Stream.fromIterable([bytes]));
+ ByteStream(Stream.value(bytes));
17
18
/// Collects the data of this stream in a [Uint8List].
19
Future<Uint8List> toBytes() {
0 commit comments