LxSuccess<T> class
final
Status: Success (the operation completed with a result).
Constructors
- LxSuccess(T value)
-
Creates a success status wrapper around
value.const
Properties
- errorOrNull → Object?
-
Returns the error if the status is LxError, otherwise
null.no setterinherited - hasError → bool
-
Returns
trueif the status is LxError.no setterinherited - hashCode → int
-
The hash code for this object.
no setteroverride
- hasValue → bool
-
Returns
trueif the status is LxSuccess.no setterinherited - isLoading → bool
-
Returns
trueif 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
- stackTraceOrNull → StackTrace?
-
Returns the stack trace if the status is LxError, otherwise
null.no setterinherited - value → T
-
The resulting value of the operation.
final
- 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