MailAddress constructor

MailAddress(
  1. String? personalName,
  2. String email
)

Implementation

MailAddress(this.personalName, String email) : _email = email {
  var atIndex = _email.lastIndexOf('@');
  if (atIndex != -1) {
    hostName = _email.substring(atIndex + 1);
    mailboxName = _email.substring(0, atIndex);
  }
}