Base64MailCodec class

Provides base64 encoder and decoder. Compare https://tools.ietf.org/html/rfc2045#page-23 for details.

Inheritance

Constructors

Base64MailCodec.new()
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
override
decodeText(String part, Encoding codec, {bool isHeader = false}) String
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. text specifies the text to be encoded. codec the optional codec, which defaults to utf8. Set the optional fromStart to true in case the encoding should start at the beginning of the text and not in the middle.
override
encodeText(String text, {Codec codec = MailCodec.encodingUtf8, bool wrap = true}) String
Encodes the specified text in base64 format. text specifies the text to be encoded. codec the optional codec, which defaults to utf8. Set wrap to false in case you do not want to wrap lines.
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