EmailAddress constructor

const EmailAddress(
  1. Either<ValueObjectFailure<String>, String> value
)

EmailAddress is the default constructor of this class. It should NOT be used to create a new instance of EmailAddress. It's here solely for the purpose to satisfy the compiler since JsonSerializable demands for it. Always use EmailAddress.withValue(value) constructor which will internally check for the validity of the provided input

Implementation

const EmailAddress(this.value);