RemoterOptions class
Defines options for RemoterClient, RemoterQuery and PaginatedRemoterQuery
RemoterOptions(
// staleTime defines how many ms after query fetched can be refetched
staleTime: 0,
// cacheTime defines how many ms after all listeners are gone query data should be cleared,
cacheTime: 5 * 60 * 1000,
// Maximum delay between retries in ms
maxDelay: 5 * 60 * 1000,
// Maximum amount of retries
maxRetries: 3,
// Flag that decides if query that has error status should be refetched on mount
retryOnMount: true,
)
Constructors
- RemoterOptions({int? staleTime, int? cacheTime, int? maxDelay, int? maxRetries, bool? retryOnMount})
- Defines options for RemoterClient, RemoterQuery and PaginatedRemoterQuery
Properties
-
cacheTime
→ Default<
int> -
Defines after how many ms after all listeners unmounted cache should be cleared
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
maxDelay
→ Default<
int> -
Maximum delay between retries in ms
final
-
maxRetries
→ Default<
int> -
Maximum amount of retries
final
-
retryOnMount
→ Default<
bool> -
Flag that decides if query that has error status should be refetched on mount
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
staleTime
→ Default<
int> -
Defines after how many ms after query data is considered as stale
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