removeRecipient method
Removes the specified recipient from To/Cc/Bcc fields.
Compare addRecipient and clearRecipients.
Implementation
void removeRecipient(MailAddress recipient) {
if (to != null) {
to?.remove(recipient);
}
if (cc != null) {
cc?.remove(recipient);
}
if (bcc != null) {
bcc?.remove(recipient);
}
}