QueryController<TData, TParams, TError> class

Controller for simple queries

Constructors

QueryController({required QueryState<TData, TError, TParams> state, required Future<void> fetch({TParams? newParameters}), required Future<void> refetch(), required void updateParameters(TParams newParameters)})
const

Properties

data → TData?
no setter
error → TError?
no setter
fetch → Future<void> Function({TParams? newParameters})
final
hasError → bool
no setter
hashCode → int
The hash code for this object.
no setterinherited
isIdle → bool
no setter
isLoading → bool
no setter
isSuccess → bool
no setter
params → TParams?
no setter
refetch → Future<void> Function()
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → QueryState<TData, TError, TParams>
final
status → QueryLoadingState
no setter
updateParameters → void Function(TParams newParameters)
final

Methods

fetchData({TParams? newParameters}) → Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refetchData() → Future<void>
toString() → String
A string representation of this object.
inherited
updateQueryVariables(TParams newVariables) → void

Operators

operator ==(Object other) → bool
The equality operator.
inherited