toString method
Returns the address formatted for email headers.
Produces either Name <email@example.com> or just email@example.com.
Example:
print(EmailAddress('jane@example.com', name: 'Jane').toString());
Implementation
@override
String toString() {
return name != null ? '$name <$email>' : email;
}