compressToEncodedURIComponentSync static method

String? compressToEncodedURIComponentSync(
  1. String? input
)

Synchronously 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 String? compressToEncodedURIComponentSync(String? input) =>
    _compress(input, 6, (a) => _keyStrUriSafe[a]);