GraphQlPageProvider<T, C, K> class
PageProvider fetching items from the remote in a GraphQL style.
- Implemented types
-
- PageProvider<
T, C, K>
- PageProvider<
Constructors
Properties
-
fetch
→ Future<
Page< Function({C? after, C? before, int? first, int? last})T, C> > -
Callback fetching items from the remote.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- reversed → bool
-
Indicator whether this GraphQlPageProvider is reversed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
after(
K? key, C? cursor, int count) → Future< Page< T, C> > -
Fetches the Page after the provided
key
orcursor
.override -
around(
K? key, C? cursor, int count) → Future< Page< T, C> > -
Fetches the Page around the provided
key
orcursor
.override -
before(
K? key, C? cursor, int count) → Future< Page< T, C> > -
Fetches the Page before the provided
key
orcursor
.override -
clear(
) → Future< void> -
Clears this PageProvider.
override
-
dispose(
) → void -
Disposes this PageProvider, freeing any resources it might've occupied.
override
-
init(
K? key, int count) → Future< Page< T, C> ?> -
Initializes this PageProvider, loading initial Page, if any.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
put(
Iterable< T> items, {bool ignoreBounds = false, int compare(T, T)?}) → Future<void> -
Adds the provided
items
to this PageProvider.override -
remove(
K key) → Future< void> -
Removes the item specified by its
key
from this PageProvider.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited