Email class

Constructors

Email({required String id, String? threadId, String? provider, String? accountId, required String subject, required String from, List<String> to = const [], List<String> cc = const [], List<String> bcc = const [], required String body, required bool html, required DateTime date, List<String> labels = const [], required bool isRead, required bool isStarred, List<AttachmentMeta> attachments = const [], String? snippet, String? messageId, String? inReplyTo, List<String> references = const []})
Returns a new Email instance.

Properties

accountId ↔ String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
attachments ↔ List<AttachmentMeta>
getter/setter pair
bcc ↔ List<String>
getter/setter pair
body ↔ String
getter/setter pair
cc ↔ List<String>
getter/setter pair
date ↔ DateTime
getter/setter pair
from ↔ String
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
html ↔ bool
true when body contains HTML, false for plain text.
getter/setter pair
id ↔ String
getter/setter pair
inReplyTo ↔ String?
RFC 5322 In-Reply-To header — the parent message id this message is a reply to.
getter/setter pair
isRead ↔ bool
getter/setter pair
isStarred ↔ bool
getter/setter pair
labels ↔ List<String>
getter/setter pair
messageId ↔ String?
RFC 5322 Message-ID header.
getter/setter pair
provider ↔ String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
references ↔ List<String>
RFC 5322 References header (ancestor chain).
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
snippet ↔ String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
subject ↔ String
getter/setter pair
threadId ↔ String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
to ↔ List<String>
getter/setter pair

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.
override

Operators

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

Static Methods

fromJson(dynamic value) → Email?
Returns a new Email instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Email>
mapFromJson(dynamic json) → Map<String, Email>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Email>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.