Result<S, E> class sealed

Returns either Success S or Error E type.

Implementers
Available Extensions

Constructors

Result()
const
Result.error(E error)
const
factory
Result.success(S success)
const
factory

Properties

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

Methods

map<TResult extends Object?>({required SuccessCallback<TResult, S, E> success, required ErrorCallback<TResult, S, E> error}) → TResult
mapOrNull<TResult extends Object?>({NullableSuccessCallback<TResult, S, E> success, NullableErrorCallback<TResult, S, E> error}) → TResult?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required SuccessValueCallback<TResult, S> success, required ErrorValueCallback<TResult, E> error}) → TResult

Operators

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