copyWith method
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,
);
}