EmailAddress class Null safety

EmailAddress value object holds information about the user's email address.

Inheritance
Annotations

Constructors

EmailAddress(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
const
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.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
value Either<ValueObjectFailure<String>, String>
final

Methods

getValue() String
inherited
isValid() bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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