copyWith method

LeakDiagnosticConfig copyWith({
  1. bool? collectRetainingPathForNotGCed,
  2. bool? collectStackTraceOnStart,
  3. bool? collectStackTraceOnDisposal,
})

Implementation

LeakDiagnosticConfig copyWith({
  bool? collectRetainingPathForNotGCed,
  bool? collectStackTraceOnStart,
  bool? collectStackTraceOnDisposal,
}) {
  return LeakDiagnosticConfig(
    collectRetainingPathForNotGCed:
        collectRetainingPathForNotGCed ?? this.collectRetainingPathForNotGCed,
    collectStackTraceOnStart:
        collectStackTraceOnStart ?? this.collectStackTraceOnStart,
    collectStackTraceOnDisposal:
        collectStackTraceOnDisposal ?? this.collectStackTraceOnDisposal,
  );
}