PhoneNumber class

Inheritance
Annotations
  • @JsonSerializable()
  • @_PhoneNumberConverter()

Constructors

PhoneNumber(Either<ValueObjectFailure<String>, String> value)
PhoneNumber is the default constructor of this class. It should NOT be used to create a new instance of PhoneNumber. It's here solely for the purpose to satisfy the compiler since JsonSerializable demands for it. Always use PhoneNumber.withValue(value) constructor which will internally check for the validity of the provided input
const
PhoneNumber.fromJson(String value)
factory
PhoneNumber.withValue(String value)
PhoneNumber.withValue the constructor that should be used in all useCases.
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