copyWith method

  1. @useResult
LeakTesting copyWith({
  1. IgnoredLeaks? ignoredLeaks,
  2. LeakDiagnosticConfig? leakDiagnosticConfig,
  3. bool? ignore,
  4. 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,
  );
}