bytesToString method

Future<String> bytesToString([
  1. Encoding encoding = Closeable.DEFAULT_ENCODING
])

Converts the byte stream to a string using UTF-8 or the given encoding.

encoding the encoding to use (defaults to UTF-8)

Implementation

Future<String> bytesToString([Encoding encoding = Closeable.DEFAULT_ENCODING]) => encoding.decodeStream(_stream);