AppFailureResult<T> class final

A failed AppResult.

Inheritance

Constructors

AppFailureResult(AppFailure failure)
const

Properties

dataOrNull → T?
Returns the success data, or null when this result is a failure.
no setterinherited
failure → AppFailure
The failure produced by a failed operation.
final
failureOrNull → AppFailure?
Returns the AppFailure, or null when this result is successful.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
isFailure → bool
Returns true when this result is AppFailureResult.
no setterinherited
isSuccess → bool
Returns true when this result is AppSuccess.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

fold<R>(R onSuccess(T data), R onFailure(AppFailure failure)) → R
Handles both possible outcomes and returns a single value.
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.
inherited