Base64MailCodec class

Provides base64 encoder and decoder.

Compare https://tools.ietf.org/html/rfc2045#page-23 for details.

Inheritance

Constructors

Base64MailCodec()
Creates a new base64 mail codec
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decodeData(String part) Uint8List
Encodes the given part text.
override
decodeText(String part, Encoding codec, {bool isHeader = false}) String
Decodes the given part text with the given codec.
override
encodeData(List<int> data, {bool wrap = true}) String
Encodes the specified data in base64 format. Set wrap to false in case you do not want to wrap lines.
encodeHeader(String text, {int nameLength = 0, bool fromStart = false}) String
Encodes the header text in base64 only if required.
override
encodeText(String text, {Codec codec = MailCodec.encodingUtf8, bool wrap = true}) String
Encodes the specified text in base64 format.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited