RemoterQueryUtils<T> class
Represents class of helper methods which is passed to builder function for RemoterQuery These function doesn't add any functionality to RemoterClient methods
- Implementers
Constructors
-
RemoterQueryUtils({required FutureOr invalidateQuery(), required FutureOr retry(), required FutureOr setData(T data), required FutureOr refetch(), required FutureOr<
T> getData()}) - Represents class of helper methods which is passed to builder function for RemoterQuery These function doesn't add any functionality to RemoterClient methods
Properties
-
getData
→ FutureOr<
T> Function() -
Gets current state of query
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- invalidateQuery → FutureOr Function()
-
Refetches query even if it is not stale
final
- refetch → FutureOr Function()
-
Refetches query only if query is stale
final
- retry → FutureOr Function()
-
Retries query if it has status of RemoterStatus.error
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- setData → FutureOr Function(T data)
-
Sets value of query manually
final
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