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(
  super.key,
  complex.EmailAddress this.emailAddress,
) : super.withKey() {
  if (emailAddress != null) {
    emailAddress!.addOnChangeEvent(EmailAddressChanged);
  }
}