Which end of an infinite query a fetch is extending. Travels in
FetchOptions.meta, and so ends up in QueryState.fetchMeta.
InfiniteQueryObserver.fetchNextPage and fetchPreviousPage attach one;
a fetch without one (a first load or a refetch) refetches all pages. The
observer reads it back from the query's state to answer
isFetchingNextPage and its siblings. Code outside the library rarely
needs it, except to recognise a page fetch in QueryState.fetchMeta.
- Annotations
-
- @immutable
Constructors
- FetchMore(FetchDirection direction)
-
Marks a fetch as extending the pages in
direction:FetchMore(FetchDirection.forward)appends a next page,FetchMore(FetchDirection.backward)prepends a previous one.const
Properties
- direction → FetchDirection
-
Which end is being extended: FetchDirection.forward adds after the
last page, FetchDirection.backward before the first.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override