StatedResult mixin
Common behaviors for ActionResult, QueryResult, AsyncActionResult, AsyncQueryResult
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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 setter
- isFailed → bool
-
Return ture when the query/action has finished with error
no setter
- isFinished → bool
-
Return true when query/action has been finished either with or without error
no setter
- isNotStarted → bool
-
Return true when query/action hasn't been started
no setter
- isSucceeded → bool
-
Return true when query/action has finished successfully, regardless it is an action or query
no setter
- isWaiting → bool
-
Return true when query/action is being processed
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
asFailed(
) → FailedResult -
asValueResult<
T> () → ValueResult< T> -
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