urlSafeNoPadding constant

Base64Codec const urlSafeNoPadding

Codec instance to encode and decode 8-bit integer sequence to 6-bit Base-64 character sequence using the alphabet described in RFC-4648 considering the URL and filename safety:

ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_

It is not padded.

Implementation

static const Base64Codec urlSafeNoPadding = Base64Codec._(
  encoder: AlphabetEncoder(
    bits: 6,
    alphabet: _base64EncodingRfc4648UrlSafe,
  ),
  decoder: AlphabetDecoder(
    bits: 6,
    alphabet: _base64DecodingRfc4648,
  ),
);