UseInfiniteQueryResult<TData, TError, TPageParam> class
Result type for useInfiniteQuery hook
Constructors
-
UseInfiniteQueryResult({required List<
TData> pages, required List<TPageParam?> pageParams, required TError? error, required bool isLoading, required bool isFetching, required bool isPending, required bool isError, required bool isSuccess, required bool hasNextPage, required bool hasPreviousPage, required bool isFetchingNextPage, required bool isFetchingPreviousPage, required Future<List< fetchNextPage(), required Future<TData> >List< fetchPreviousPage(), required Future<TData> >List< refetch(), required bool hasData, required DateTime? dataUpdatedAt})TData> > -
const
-
UseInfiniteQueryResult.fromState(InfiniteQueryState<
TData, TError, TPageParam> state, {required Future<List< fetchNextPage(), required Future<TData> >List< fetchPreviousPage(), required Future<TData> >List< refetch()})TData> > -
factory
-
UseInfiniteQueryResult.loading({required Future<
List< fetchNextPage(), required Future<TData> >List< fetchPreviousPage(), required Future<TData> >List< refetch()})TData> > -
factory
Properties
- dataUpdatedAt → DateTime?
-
final
- error → TError?
-
final
-
fetchNextPage
→ Future<
List< Function()TData> > -
final
-
fetchPreviousPage
→ Future<
List< Function()TData> > -
final
- hasData → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasNextPage → bool
-
final
- hasPreviousPage → bool
-
final
- isError → bool
-
final
- isFetching → bool
-
final
- isFetchingNextPage → bool
-
final
- isFetchingPreviousPage → bool
-
final
- isLoading → bool
-
final
- isPending → bool
-
final
- isSuccess → bool
-
final
-
pageParams
→ List<
TPageParam?> -
final
-
pages
→ List<
TData> -
final
-
refetch
→ Future<
List< Function()TData> > -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
flatMap<
T> (T mapper(TData page)) → List< T> - Get all data flattened
-
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