ValueObject<F, T> class abstract

Annotations

Constructors

ValueObject()
const

Properties

failureOrUnit → Either<F, Unit>
no setter
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → Either<F, T>
no setter

Methods

getOrCrash() → T
Throws UnexpectedValueError containing the ValueFailure
getOrNull() → T?
isValid() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override