Message class

the implementation of an email message

Annotations
  • @JsonSerializable()

Constructors

Message({required int id, required String from, required String subject, required String excerpt, required DateTime timestamp, required bool read, required String date, String? recipient, String? body, String? mimeType})
Message.fromJson(Map<String, dynamic> json)
factory

Properties

body String?
The message part of the email. May contain filtered HTML as described above
final
date String
Date of arrival in the following format if less than 24 hours: H:M:S, or Y-M-D if older than 24
final
excerpt String
a short excerpt of the email
final
from String
email address of sender
final
hashCode int
The hash code for this object.
no setterinherited
id int
an integer
final
mimeType String?
MIME type for the mail_body, can be text/plain or text/html
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
read bool
indicating if email was fetched before
final
recipient String?
email address of receiver
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
subject String
UTF-8 encoded string of the email’s subject
final
timestamp DateTime
unix timestamp of arrival
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