EmailContent class

Represents the content for composing an email

Constructors

EmailContent({List<String> to = const [], List<String> cc = const [], List<String> bcc = const [], String? subject, String? body, bool isHtml = false, List<String> attachments = const []})
const
EmailContent.empty()
Creates an empty EmailContent
factory
EmailContent.fromMap(Map<String, dynamic> map)
Creates EmailContent from a map
factory

Properties

attachments List<String>
List of file paths to attach
final
bcc List<String>
List of email addresses for the "BCC" field
final
body String?
The email body content
final
cc List<String>
List of email addresses for the "CC" field
final
hashCode int
The hash code for this object.
no setterinherited
isHtml bool
Whether the body is HTML formatted
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subject String?
The email subject
final
to List<String>
List of email addresses for the "To" field
final

Methods

copyWith({List<String>? to, List<String>? cc, List<String>? bcc, String? subject, String? body, bool? isHtml, List<String>? attachments}) EmailContent
Creates a copy of this EmailContent with updated fields
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMailtoUri() String
Generates a mailto URI from this email content
toMap() Map<String, dynamic>
Converts this EmailContent to a map
toString() String
A string representation of this object.
override

Operators

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