Email class

This class models a reference to an email address.

Implemented types
Annotations

Constructors

Email({required String address, required String label})
A reference to an email address.
const
Email.fromMap(Map<String, dynamic> map)
Creates an Email instance starting from a Map<String, dynamic> map.

Properties

address String
The email address.
final
hashCode int
The hash code for this object.
no setteroverride
label String
The label of this email. It is useful for distinguishing different email addresses.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compareTo(covariant Email other) int
The order of the comparisons is:
override
mailTo({required String subject, required String body}) Future<bool>
Sends an email to this email address. The subject and the body of the email are required.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Creates a Map<String, dynamic> map representation of this instance.
toString() String
A string representation of this object.
inherited

Operators

operator <(covariant Email other) bool
Returns if this instance is less than the other.
operator <=(covariant Email other) bool
Return if this instance is less than or equal to the other.
operator ==(covariant Email other) bool
The equality operator.
override
operator >(covariant Email other) bool
Return if this instance is greater than the other.
operator >=(covariant Email other) bool
Return if this instance is greater than or equal to the other.