LxError<T> class final

Status: Error (the operation failed).

Inheritance

Constructors

LxError(Object error, [StackTrace? stackTrace, T? lastValue])
Creates an error status optionally carrying the lastValue.
const

Properties

error Object
The error object thrown during the operation.
final
errorOrNull Object?
Returns the error if the status is LxError, otherwise null.
no setterinherited
hasError bool
Returns true if the status is LxError.
no setterinherited
hashCode int
The hash code for this object.
no setteroverride
hasValue bool
Returns true if the status is LxSuccess.
no setterinherited
isLoading bool
Returns true if the status is LxWaiting.
no setterinherited
lastValue → T?
The most recent successful value of type T, if any.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
The stack trace associated with the error.
final
stackTraceOrNull StackTrace?
Returns the stack trace if the status is LxError, otherwise null.
no setterinherited
valueOrNull → T?
Returns the value if successful, otherwise null.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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