copyWith method
Returns a copy with selected fields replaced.
Implementation
RiskDetectorConfig copyWith({
bool? detectOverflows,
bool? detectAsyncRisks,
bool? detectRebuilds,
bool? detectLintIssues,
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,
lintScanDirectory: lintScanDirectory ?? this.lintScanDirectory,
rebuildWarningThreshold:
rebuildWarningThreshold ?? this.rebuildWarningThreshold,
rebuildStormThreshold:
rebuildStormThreshold ?? this.rebuildStormThreshold,
jankThresholdMs: jankThresholdMs ?? this.jankThresholdMs,
);
}