compressSync static method
Synchronously produces invalid UTF-16 strings from uncompressed
.
Can be decompressed with decompress.
Implementation
static String? compressSync(final String? uncompressed) =>
_compress(uncompressed, 16, (a) => String.fromCharCode(a));