readString method

String readString()

Read String.

Implementation

String readString() {
  const utf8Decoder = Utf8Decoder(allowMalformed: true);

  final codeUnits = readBytes();
  final tmp = utf8Decoder.convert(codeUnits);
  return tmp;
}