DriftGraphQlPageProvider<T extends Object, C, K> class

DriftPageProvider and GraphQlPageProvider providers combined.

Implemented types

Constructors

DriftGraphQlPageProvider({required DriftPageProvider<T, C, K> driftProvider, required GraphQlPageProvider<T, C, K> graphQlProvider, bool alwaysFetch = false})
const

Properties

alwaysFetch bool
Indicator whether graphQlProvider should always be invoked.
final
driftProvider DriftPageProvider<T, C, K>
DriftPageProvider fetching elements from the ScopedDriftProvider.
final
graphQlProvider GraphQlPageProvider<T, C, K>
GraphQlPageProvider fetching elements from the remote.
final
hashCode int
The hash code for this object.
no setterinherited
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 or cursor.
override
around(K? key, C? cursor, int count) Future<Page<T, C>>
Fetches the Page around the provided key or cursor.
override
before(K? key, C? cursor, int count) Future<Page<T, C>>
Fetches the Page before the provided key or cursor.
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, {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