Result<S extends Object?, E extends Object?> class sealed

Implementers

Properties

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

Methods

getErrorOrElse(E orElse()) → E
getErrorOrNull() → E?
getErrorOrThrow() → E
getSuccessOrElse(S orElse()) → S
getSuccessOrNull() → S?
getSuccessOrThrow() → S
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>(T onSuccess(S success), T onError(E error)) → T

Operators

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