CombinedResult<S, T> class abstract

A class that holds both a value and an error as a result of some computation.

Constructors

CombinedResult({required S value, required T? error, required bool hasError})
const

Properties

error → T?
The error that occurred in some computation if an error occurred; otherwise a value representing the state where there is no error.
final
hasError bool
Whether error has a value representing some error.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → S
The result of some computation.
final

Methods

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.
inherited