asString method

String asString ()

For using this method, We're assuming it is safe to transform to utf8 Strings. Return the bytes as utf8 encoded string. Same as as().

Implementation

String asString(){
  assert(_isStream != null && !_isStream);
  return utf8.decode(_bytes.toList());
}