QueryState<TData, TError> class
Represents the state of a simple query
Constructors
- QueryState.new({required QueryLoadingState status, TData? data, TError? error})
-
const
- QueryState.error(TError error)
-
factory
- QueryState.initial()
-
factory
- QueryState.success(TData data)
-
factory
Properties
- data → TData?
-
final
- error → TError?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → QueryLoadingState
-
final
Methods
-
copyWith(
{QueryLoadingState? status, TData? data, TError? error}) → QueryState< TData, TError> -
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