transformToLines function

Stream<String> transformToLines(
  1. Stream<List<int>> byteStream
)

Implementation

Stream<String> transformToLines(Stream<List<int>> byteStream) {
  return byteStream
      .transform<String>(utf8.decoder)
      .transform<String>(const LineSplitter());
}