Failure<S extends Object?, E extends Exception> class final

the failure branch of the Either class that contains the error of the failure state. The value is of type Exception.

Inheritance

Constructors

Failure(E error)

Properties

error → E
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
when<ReturnType>(SuccessCallback<S, E, ReturnType> onSuccess, FailureCallback<S, E, ReturnType> onFailure) → ReturnType

Operators

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