readString method

String readString()

Implementation

String readString() {
  final len = readUint32();
  // ByteDataReader.read(0) throws if there is no byte to read
  return len > 0 ? utf8.decode(read(len)) : '';
}