Use Stream.value for single element stream (#596)
Avoids creating a single element list.
diff --git a/lib/src/byte_stream.dart b/lib/src/byte_stream.dart
index 172db0d..eed1472 100644
--- a/lib/src/byte_stream.dart
+++ b/lib/src/byte_stream.dart
@@ -13,7 +13,7 @@
/// Returns a single-subscription byte stream that will emit the given bytes
/// in a single chunk.
factory ByteStream.fromBytes(List<int> bytes) =>
- ByteStream(Stream.fromIterable([bytes]));
+ ByteStream(Stream.value(bytes));
/// Collects the data of this stream in a [Uint8List].
Future<Uint8List> toBytes() {