EmailAddress.withValue constructor

EmailAddress.withValue(
  1. String value
)

EmailAddress.withValue the constructor that should be used in all use cases.

Implementation

factory EmailAddress.withValue(String value) {
  return EmailAddress._(
    validateEmailAddress(value),
  );
}