A base64 encoder and decoder.

A Base64Codec allows base64 encoding bytes into ASCII strings and decoding valid encodings back to bytes.

This implementation only handles the simplest RFC 4648 base-64 encoding. It does not allow invalid characters when decoding and it requires, and generates, padding so that the input is always a multiple of four characters.

Inheritance

Constructors

Base64Codec()

const

Properties

decoder Base64Decoder

read-only
encoder Base64Encoder

read-only
hashCode int

Get a hash code for this object.

read-only, inherited
inverted Codec<String, List<int>>

Inverts this.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

decode(String encoded) List<int>

inherited
encode(List<int> input) String

inherited
fuse(Codec<String, dynamic> other) Codec<List<int>, dynamic>

Fuses this with other.

inherited
noSuchMethod(Invocation invocation) → dynamic

noSuchMethod is invoked when users invoke a non-existent method on an object. The name of the method and the arguments of the invocation are passed to noSuchMethod in an Invocation. If noSuchMethod returns a value, that value becomes the result of the original invocation.

inherited
toString() String

Returns a string representation of this object.

inherited