compressToBase64 static method
Produces ASCII UTF-16 strings representing the original string encoded in
Base64 from input
.
Can be decompressed with decompressFromBase64.
This works by using only 6bits of storage per character. The strings produced are therefore 166% bigger than those produced by compress.
Implementation
static Future<String?> compressToBase64(String? input) async =>
compressToBase64Sync(input);