compress static method
Produces invalid UTF-16 strings from uncompressed
.
Can be decompressed with decompress
.
Implementation
static Future<String> compress(final String? uncompressed) async {
return await _compress(uncompressed, 16, (a) => String.fromCharCode(a));
}