EmailAddressEntry.withKeyAndEmail constructor

EmailAddressEntry.withKeyAndEmail(
  1. EmailAddressKey key,
  2. EmailAddress emailAddress
)
Initializes a new instance of the The key. The email address.

Implementation

EmailAddressEntry.withKeyAndEmail(
    EmailAddressKey key, complex.EmailAddress emailAddress)
    : super.withKey(key) {
  this.emailAddress = emailAddress;

  if (this.emailAddress != null) {
    this.emailAddress!.addOnChangeEvent(this.EmailAddressChanged);
  }
}