Email class

Constructors

Email({required EmailAddress to, required String subject, required String template, Map<String, dynamic> variables = const {}, EmailAddress? from, String? thread, String? preheader})
const
Email.fromJson(Map<String, dynamic> json)
factory

Properties

from → EmailAddress?
final
hashCode int
The hash code for this object.
no setterinherited
preheader String?
The inbox preview line, shown by mail clients next to the subject.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subject String
final
template String
The name of the template file (without the .html extension)
final
thread String?
Groups this message with earlier mail that used the same thread id.
final
to → EmailAddress
final
variables Map<String, dynamic>
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

Static Methods

createThread(String id, {bool continueThread = false}) String
Builds a Email.thread id. Pass continueThread when sending another message in the same conversation.

Constants

continueThreadSuffix → const String