map method

ByteStream map(
  1. List<int> mapper(
    1. List<int>
    )
)

Maps each chunk of bytes using the provided function.

mapper the function to apply to each chunk

Implementation

ByteStream map(List<int> Function(List<int>) mapper) {
  return ByteStream._(_stream.map(mapper));
}