Message class

Represents an email message in a user's mailbox.

Annotations
  • @JsonSerializable.new()

Constructors

Message({String? id, String? subject, String? bodyPreview, bool? hasAttachments, String? importance, DateTime? receivedDateTime, DateTime? sentDateTime, Recipient? sender, Recipient? from, List<Recipient>? toRecipients, List<Recipient>? ccRecipients, List<Recipient>? bccRecipients, ItemBody? body, bool? isRead, FollowupFlag? followupFlag})
Message.empty()
const
Message.fromJson(Map<String, dynamic> json)
factory

Properties

bccRecipients → List<Recipient>?
The BCC recipient list for the message.
final
body → ItemBody?
The message body.
final
bodyPreview → String?
The HTML body content of the message.
final
ccRecipients → List<Recipient>?
The CC recipient list for the message.
final
followupFlag → FollowupFlag?
Flag indicating whether the message has been favorited/flagged.
final
from → Recipient?
The display name of the sender.
final
hasAttachments → bool?
Indicates whether the message has attachments.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String?
The message ID.
final
importance → String?
The importance of the message: low, normal, or high.
final
isRead → bool?
Flag indicating whether the message has been read.
final
receivedDateTime → DateTime?
The date and time the message was received.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sender → Recipient?
The sender of the message.
final
sentDateTime → DateTime?
The date and time the message was sent.
final
subject → String?
The subject line of the message.
final
toRecipients → List<Recipient>?
The recipient list for the message.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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