FailedResult class abstract
State indicates the query/action is failed
error is the captured exception/error stackTrace might be available indicates where the error was thrown
All states:
Used by
- Implemented types
- Mixed in types
Constructors
- FailedResult(dynamic error, StackTrace? stackTrace)
-
const
Properties
- error → dynamic
-
Error or exception caught
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- hasValue → bool
-
Return true when query resut has a value, either it is intial value or the result after running query
It also indicates whether state implemented the ValueResult contract, regardless the type of the value
no setterinherited
- isFailed → bool
-
Return ture when the query/action has finished with error
no setterinherited
- isFinished → bool
-
Return true when query/action has been finished either with or without error
no setterinherited
- isNotStarted → bool
-
Return true when query/action hasn't been started
no setterinherited
- isSucceeded → bool
-
Return true when query/action has finished successfully, regardless it is an action or query
no setterinherited
- isWaiting → bool
-
Return true when query/action is being processed
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
Stack trace of the error
final
Methods
-
asFailed(
) → FailedResult -
inherited
-
asValueResult<
T> () → ValueResult< T> -
inherited
-
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 ==(
dynamic other) → bool -
The equality operator.
override