FailedValueState<T> class
State indicates the action is failed with error, and a value
- error : exception or error object
- Inheritance
-
- Object
- ValueErrorStateBase<
T, FailedValueState< T> > - FailedValueState
- Available Extensions
Constructors
- FailedValueState(T value, Object error)
-
const
Properties
- error → Object
-
Error or exception
finalinherited
- hasError → bool
-
Return true if it has error
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasValue → bool
-
Return true if it has a value
no setterinherited
- isFailed → bool
-
@inheritdoc
no setteroverride
- isFinished → bool
-
Return true if it is finished, either succeeded or failed
no setterinherited
- isIdle → bool
-
Return true if it is idle
no setterinherited
- isSucceeded → bool
-
Return true if it is succeeded
no setterinherited
- isWorking → bool
-
Return true if it is in progress
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → T
-
Value holds of the state
finalinherited
Methods
-
extractError(
) → Object -
Extract error or exception
inherited
-
extractValue<
T> () → T -
Extract the 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 ==(
dynamic other) → bool -
The equality operator.
inherited