copyWith method

RiskDetectorConfig copyWith({
  1. bool? detectOverflows,
  2. bool? detectAsyncRisks,
  3. bool? detectRebuilds,
  4. bool? detectLintIssues,
  5. bool? enableUiUpdateDetection,
  6. int? uiUpdateThresholdSeconds,
  7. String? lintScanDirectory,
  8. int? rebuildWarningThreshold,
  9. int? rebuildStormThreshold,
  10. int? jankThresholdMs,
})

Returns a copy with selected fields replaced.

Implementation

RiskDetectorConfig copyWith({
  bool? detectOverflows,
  bool? detectAsyncRisks,
  bool? detectRebuilds,
  bool? detectLintIssues,
  bool? enableUiUpdateDetection,
  int? uiUpdateThresholdSeconds,
  String? lintScanDirectory,
  int? rebuildWarningThreshold,
  int? rebuildStormThreshold,
  int? jankThresholdMs,
}) {
  return RiskDetectorConfig(
    detectOverflows: detectOverflows ?? this.detectOverflows,
    detectAsyncRisks: detectAsyncRisks ?? this.detectAsyncRisks,
    detectRebuilds: detectRebuilds ?? this.detectRebuilds,
    detectLintIssues: detectLintIssues ?? this.detectLintIssues,
    enableUiUpdateDetection:
        enableUiUpdateDetection ?? this.enableUiUpdateDetection,
    uiUpdateThresholdSeconds:
        uiUpdateThresholdSeconds ?? this.uiUpdateThresholdSeconds,
    lintScanDirectory: lintScanDirectory ?? this.lintScanDirectory,
    rebuildWarningThreshold:
        rebuildWarningThreshold ?? this.rebuildWarningThreshold,
    rebuildStormThreshold:
        rebuildStormThreshold ?? this.rebuildStormThreshold,
    jankThresholdMs: jankThresholdMs ?? this.jankThresholdMs,
  );
}