copyWith method
- IgnoredLeaks? ignoredLeaks,
- LeakDiagnosticConfig? leakDiagnosticConfig,
- bool? ignore,
- MemoryBaselining? baselining,
Creates a copy of this object with the given fields replaced with the new values.
Implementation
@useResult
LeakTesting copyWith({
IgnoredLeaks? ignoredLeaks,
LeakDiagnosticConfig? leakDiagnosticConfig,
bool? ignore,
MemoryBaselining? baselining,
}) {
return LeakTesting._(
ignoredLeaks: ignoredLeaks ?? this.ignoredLeaks,
leakDiagnosticConfig: leakDiagnosticConfig ?? this.leakDiagnosticConfig,
ignore: ignore ?? this.ignore,
baselining: baselining ?? this.baselining,
);
}