QueryState<TData, TError, TParams> class

Represents the state of a simple query

Constructors

QueryState({required QueryLoadingState status, TData? data, TError? error, required TParams params})
const
QueryState.error(TError error, TParams params)
factory
QueryState.initial(TParams params)
factory
QueryState.success(TData data, TParams params)
factory

Properties

data → TData?
final
error → TError?
final
hashCode int
The hash code for this object.
no setterinherited
params → TParams
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status QueryLoadingState
final

Methods

copyWith({QueryLoadingState? status, TData? data, TError? error, TParams? params}) QueryState<TData, TError, TParams>
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