copyWith method

RefreshConfig copyWith({
  1. Duration? staleDuration,
  2. Duration? refreshInterval,
  3. bool? refreshOnMount,
  4. bool? refreshOnQueryFnChange,
  5. bool? refreshOnNetworkStateChange,
})

Implementation

RefreshConfig copyWith({
  Duration? staleDuration,
  Duration? refreshInterval,
  bool? refreshOnMount,
  bool? refreshOnQueryFnChange,
  bool? refreshOnNetworkStateChange,
}) {
  return RefreshConfig(
    staleDuration: staleDuration ?? this.staleDuration,
    refreshInterval: refreshInterval ?? this.refreshInterval,
    refreshOnMount: refreshOnMount ?? this.refreshOnMount,
    refreshOnQueryFnChange:
        refreshOnQueryFnChange ?? this.refreshOnQueryFnChange,
    refreshOnNetworkStateChange:
        refreshOnNetworkStateChange ?? this.refreshOnNetworkStateChange,
  );
}