RefreshConfig.withConstantDefaults constructor

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

Implementation

factory RefreshConfig.withConstantDefaults({
  Duration? staleDuration,
  Duration? refreshInterval,
  bool? refreshOnMount,
  bool? refreshOnQueryFnChange,
}) {
  return DefaultConstants.refreshConfig.copyWith(
    staleDuration: staleDuration,
    refreshInterval: refreshInterval,
    refreshOnMount: refreshOnMount,
    refreshOnQueryFnChange: refreshOnQueryFnChange,
  );
}