EmailAddress class
EmailAddress value object holds information about the user's email address.
- Inheritance
-
- Object
- ValueObject<
String> - EmailAddress
- Annotations
-
- @JsonSerializable()
- @_EmailAddressConverter()
Constructors
-
EmailAddress(Either<
ValueObjectFailure< value)String> , String> -
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 sinceJsonSerializable
demands for it. Always use EmailAddress.withValue(value) constructor which will internally check for the validity of the provided inputconst - EmailAddress.fromJson(String value)
-
factory
- EmailAddress.withValue(String value)
-
EmailAddress.withValue the constructor that should be used in all use cases.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
value
→ Either<
ValueObjectFailure< String> , String> -
final
Methods
-
getValue(
) → String -
inherited
-
isValid(
) → bool -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object o) → bool -
The equality operator.
inherited