copyWith method
QueryOptions<Data>
copyWith({
- ValueGetter<
int> ? gcTime, - ValueGetter<
Data> ? initialData, - ValueGetter<
int> ? staleTime, - ValueGetter<
int> ? refetchInterval,
Implementation
QueryOptions<Data> copyWith({
ValueGetter<int>? gcTime,
ValueGetter<Data>? initialData,
ValueGetter<int>? staleTime,
ValueGetter<int>? refetchInterval,
}) {
return QueryOptions<Data>(
gcTime: gcTime != null ? gcTime() : _gcTime,
initialData: initialData != null ? initialData() : _initialData,
staleTime: staleTime != null ? staleTime() : _staleTime,
refetchInterval:
refetchInterval != null ? refetchInterval() : _refetchInterval,
);
}