restoreText function
Decompresses a Uint8List that was compressed using shrinkText.
This function first decompresses the zlib-compressed data using restoreBytes, then decodes the resulting bytes as a UTF-8 string.
Returns the original string. Throws a FormatException if the decompressed data is not valid UTF-8.
Implementation
String restoreText(Uint8List shrunken) {
final restored = restoreBytes(shrunken);
return utf8.decode(restored);
}