bytesToString method

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

Collect the data of this stream in a String, decoded according to encoding, which defaults to UTF8.

Implementation

Future<String> bytesToString([Encoding encoding = utf8]) =>
    encoding.decodeStream(this);