MessagePart class

A single MIME message part.


MessagePart.fromJson(Map _json)


body MessagePartBody
The message part body for this part, which may be empty for container MIME message parts.
read / write
filename String
The filename of the attachment. Only present if this message part represents an attachment.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
headers List<MessagePartHeader>
List of headers on this message part. For the top-level message part, representing the entire message payload, it will contain the standard RFC 2822 email headers such as To, From, and Subject.
read / write
mimeType String
The MIME type of the message part.
read / write
partId String
The immutable ID of the message part.
read / write
parts List<MessagePart>
The child MIME message parts of this part. This only applies to container MIME message parts, for example multipart / * . For non- container MIME message part types, such as text/plain, this field is empty. For more information, see RFC 1521.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toJson() Map<String, Object>
toString() String
Returns a string representation of this object.


operator ==(dynamic other) bool
The equality operator. [...]