compress static method

Future<String> compress(
  1. String? uncompressed
)

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));
}