compressToEncodedURIComponent static method

Future<String> compressToEncodedURIComponent(
  1. String? input
)

Produces ASCII strings representing the original string encoded in Base64 with a few tweaks to make these URI safe.

Can be decompressed with decompressFromEncodedURIComponent

Implementation

static Future<String> compressToEncodedURIComponent(String? input) async {
  if (input == null) "";
  return await _compress(input, 6, (a) => _keyStrUriSafe[a]);
}