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

the success class of the Either class that contains the value of the success state.

Inheritance

Constructors

Success(S value)

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 → S
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
when<ReturnType>(SuccessCallback<S, E, ReturnType> onSuccess, FailureCallback<S, E, ReturnType> onFailure) → ReturnType

Operators

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