copyWith method

ChartRuntimePerformancePolicy copyWith({
  1. int? largeDatasetPointThreshold,
  2. double? cachePressureWarningThreshold,
  3. double? lowRenderCacheHitRateThreshold,
  4. int? lowRenderCacheMinRequests,
})

Implementation

ChartRuntimePerformancePolicy copyWith({
  int? largeDatasetPointThreshold,
  double? cachePressureWarningThreshold,
  double? lowRenderCacheHitRateThreshold,
  int? lowRenderCacheMinRequests,
}) {
  return ChartRuntimePerformancePolicy(
    largeDatasetPointThreshold:
        largeDatasetPointThreshold ?? this.largeDatasetPointThreshold,
    cachePressureWarningThreshold:
        cachePressureWarningThreshold ?? this.cachePressureWarningThreshold,
    lowRenderCacheHitRateThreshold:
        lowRenderCacheHitRateThreshold ?? this.lowRenderCacheHitRateThreshold,
    lowRenderCacheMinRequests:
        lowRenderCacheMinRequests ?? this.lowRenderCacheMinRequests,
  );
}