ResultSuccess<ValueT, FailureT extends Exception> class

Implemented types

Constructors

ResultSuccess(ValueT value)
const

Properties

failureOrNull → FailureT?
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
isFailure bool
no setteroverride
isValue bool
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → ValueT
final
valueOrNull → ValueT?
no setteroverride
valueOrThrow → ValueT
Returns the value if it is a success. Else, throws the error as an Exception.
no setteroverride

Methods

map<T>({required T success(ResultSuccess<ValueT, FailureT> result), required T failure(ResultFailure<ValueT, FailureT> result)}) → T
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<T>({required T success(ValueT value), required T failure(FailureT failure)}) → T
override

Operators

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