ByteStream.fromBytes constructor

ByteStream.fromBytes(
  1. List<int> bytes
)

Returns a single-subscription byte stream that will emit the given bytes in a single chunk.

Implementation

factory ByteStream.fromBytes(List<int> bytes) =>
    ByteStream(Stream.value(bytes));