Success<A, E> class
final
Represents a successful exit with a value
Constructors
- Success.new(A value)
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- isFailure → bool
-
Returns true if this is a Failure
no setterinherited
- isSuccess → bool
-
Returns true if this is a Success
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → A
-
final
Methods
-
flatMap<
B, E2> (Exit< B, E2> f(A)) → Exit<B, E2> -
Flat maps this exit with a function that returns another exit
inherited
-
fold<
C> (C onFailure(Cause< E> ), C onSuccess(A)) → C -
Folds this exit into a single value
inherited
-
map<
B> (B f(A)) → Exit< B, E> -
Maps the success value of this exit
inherited
-
mapError<
E2> (E2 f(E)) → Exit< A, E2> -
Maps the error type of this exit
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override