InitialValueResult<T> class Null safety

State indicates the query has not been started yet, but provided with a default initial value

the value is the initial value

All states:

Used by

Constructors

InitialValueResult(T value)
const

Properties

hashCode int
The hash code for this object.
read-onlyinherited
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
read-onlyinherited
isFailed bool
Return ture when the query/action has finished with error
read-onlyinherited
isFinished bool
Return true when query/action has been finished either with or without error
read-onlyinherited
isNotStarted bool
Return true when query/action hasn't been started
read-onlyinherited
isSucceeded bool
Return true when query/action has finished successfully, regardless it is an action or query
read-onlyinherited
isWaiting bool
Return true when query/action is being processed
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
value → T
The value of the result
finalinherited

Methods

asFailed() FailedResult
inherited
asValueResult<T>() ValueResult<T>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator.
inherited