toStr method
Converts the payload to a Dart string via a lenient UTF-8 decode.
Reads the raw payload bytes through the byte-faithful reader (the same
path as toBytes) and decodes them with allowMalformed: true, so
non-UTF-8 payloads yield U+FFFD replacement characters rather than
throwing. This keeps toStr a lenient display view over an opaque byte
contract; use toBytes for the exact bytes.
Throws StateError if this ZBytes has been disposed or consumed.
Implementation
String toStr() => utf8.decode(toBytes(), allowMalformed: true);