EmailContent class final

An e-mail draft (mailto:, MATMSG:, SMTP:).

Inheritance

Constructors

EmailContent({required String address, String? subject, String? body})
Creates e-mail content.
const

Properties

address → String
Recipient address. Several recipients are separated by commas, as in mailto:; empty if the code leaves the recipient to the user.
final
body → String?
Body, if given.
final
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subject → String?
Subject, if given.
final
uri → Uri?
mailto:address?subject=…&body=…, as toPayload.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toPayload() → String
mailto:address?subject=…&body=…, percent-encoded (RFC 6068).
override
toString() → String
A string representation of this object.
override
validate() → List<ContentIssue>
The problems that keep toPayload from building this value, such as an empty network name or a latitude out of range. Empty when the value can be built. For forms: show each ContentIssue.message next to its ContentIssue.field.
override

Operators

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