RemoterPaginatedUtils<T> class

Represents class of helper methods which is passed to builder function for PaginatedRemoterQuery These function doesn't add any functionality to RemoterClient methods

Inheritance

Constructors

RemoterPaginatedUtils({required FutureOr fetchNextPage(), required FutureOr fetchPreviousPage(), required FutureOr<T> getData(), required FutureOr invalidateQuery(), required FutureOr retry(), required FutureOr setData(T data), required FutureOr refetch()})
Represents class of helper methods which is passed to builder function for PaginatedRemoterQuery These function doesn't add any functionality to RemoterClient methods

Properties

fetchNextPage FutureOr Function()
Fetches next page if getNextPageParam doesn't return null
final
fetchPreviousPage FutureOr Function()
Fetches previous page if getPreviousPageParam doesn't return null
final
getData FutureOr<T> Function()
Gets current state of query
finalinherited
hashCode int
The hash code for this object.
no setterinherited
invalidateQuery FutureOr Function()
Refetches query even if it is not stale
finalinherited
refetch FutureOr Function()
Refetches query only if query is stale
finalinherited
retry FutureOr Function()
Retries query if it has status of RemoterStatus.error
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setData FutureOr Function(T data)
Sets value of query manually
finalinherited

Methods

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