flutter_query library

Classes

Action
BaseQueryConfig
ClearOptions
ErrorAction<TError>
FailedAction
FetchAction
FetchMoreOptions
FetchOptions
FetchQueryObjectConfig
InfiniteQueryResult
InvalidateAction
InvalidateQueriesOptions
MutateConfig<TResult, TError, TVariables, TSnapshot>
MutationConfig<TResult, TError, TVariables, TSnapshot>
MutationResult
NotifyOptions
PaginatedQueryResult
PrefetchQueryObjectConfig
PrefetchQueryOptions
Query
QueryCache
QueryCacheConfig
QueryCacheProvider
QueryCacheProviderState
QueryObserver
QueryObserverConfig
QueryPredicateOptions
QueryResult
QueryResultBase
QueryState
ReactQueryConfig
ReactQueryMutationsConfig<TResult, TError, TVariables, TSnapshot>
ReactQueryQueriesConfig
ReactQuerySharedConfig
RefetchOptions
RefetchQueriesOptions
ResolvedQueryConfig
SetDataOptions
SuccessAction<TResult>

Properties

defaultConfig ReactQueryConfig
final
defaultQueryKeySerializerFn List Function(dynamic queryKey)
final
stableStringify → dynamic Function(dynamic value)
final

Functions

getDefaultState(ResolvedQueryConfig config) QueryState
getLastPage(List pages, bool previous) → dynamic
getResolvedQueryConfig(QueryCache queryCache, dynamic queryKey, ReactQueryConfig contextConfig, BaseQueryConfig config) ResolvedQueryConfig
hasMorePages(ResolvedQueryConfig config, dynamic pages, [bool previous = false]) bool
isResolvedQueryConfig(ResolvedQueryConfig config) → dynamic
queryReducer(QueryState state, Action action) QueryState
useInfiniteQuery<T>(String key, PageableQueryFunction<T> fn, {GetFetchMoreFunction getFetchMore, int cacheTime, bool enabled: true, dynamic initialData, dynamic initialStale, Function isDataEqual, bool keepPreviousData: false, bool notifyOnStatusChange: true, QueryCallback onSuccess, QueryCallback onError, QueryCallback onSettled, Function queryFnParamsFilter, Function queryKeySerializerFn, dynamic refetchInterval, bool refetchIntervalInBackground, bool refetchOnMount: true, bool refetchOnReconnect: true, dynamic retry, int retryDelay, double staleTime, bool structuralSharing, bool useErrorBoundary}) QueryResult
useQuery<T>(String key, QueryFunction<T> fn, {int cacheTime, bool enabled: true, dynamic initialData, dynamic initialStale, Function isDataEqual, bool keepPreviousData: false, bool notifyOnStatusChange: true, QueryCallback onSuccess, QueryCallback onError, QueryCallback onSettled, Function queryFnParamsFilter, Function queryKeySerializerFn, dynamic refetchInterval, bool refetchIntervalInBackground, bool refetchOnMount: true, bool refetchOnReconnect: true, dynamic retry, int retryDelay, double staleTime, bool structuralSharing, bool useErrorBoundary}) QueryResult

Enums

ActionType
QueryStatus

Typedefs

GetFetchMoreFunction(dynamic latestPage, dynamic allPages) → dynamic
PageableQueryFunction<T>(int page) Future
QueryCacheListener(QueryCache cache, Query query) → dynamic
QueryCallback<T>(T data) → void
QueryFunction<T>() Future<T>
RunFuture() Future
UpdateListener(QueryResult result) → dynamic