InfiniteQueryObserver<TPage, TPageParam> class final

Observer for infinite-query controls; storage remains a normal Query entry.

Constructors

InfiniteQueryObserver(QueryClient client, InfiniteQueryOptions<TPage, TPageParam> options)
Creates an observer for options on client.

Properties

client → QueryClient
The client that owns the query.
final
current → InfiniteQueryResult<TPage, TPageParam>
The current result projection.
no setter
hashCode → int
The hash code for this object.
no setterinherited
options → InfiniteQueryOptions<TPage, TPageParam>
The infinite query definition.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Releases resources held by the underlying observer.
fetchNextPage({bool cancelRefetch = true}) → Future<InfiniteQueryResult<TPage, TPageParam>>
Fetches and appends the next page when available.
fetchPreviousPage({bool cancelRefetch = true}) → Future<InfiniteQueryResult<TPage, TPageParam>>
Fetches and prepends the previous page when available.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setOptions(InfiniteQueryOptions<TPage, TPageParam> value) → void
Updates future fetches and paging controls without remounting the same key.
subscribe(void listener(InfiniteQueryResult<TPage, TPageParam> result)) → QueryDispose
Subscribes to infinite query results.
toString() → String
A string representation of this object.
inherited

Operators

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