LeakTrackingTestConfig.debug constructor

LeakTrackingTestConfig.debug({
  1. LeakDiagnosticConfig leakDiagnosticConfig = const LeakDiagnosticConfig(collectStackTraceOnStart: true, collectStackTraceOnDisposal: true, collectRetainingPathForNotGCed: true),
  2. Map<String, int?> notGCedAllowList = const <String, int>{},
  3. Map<String, int?> notDisposedAllowList = const <String, int>{},
  4. bool allowAllNotDisposed = false,
  5. bool allowAllNotGCed = false,
  6. MemoryBaselining? baselining,
  7. bool isLeakTrackingPaused = false,
})

Creates a new instance for debugging leaks.

This configuration will collect stack traces on start and disposal, and the objects' retaining paths for notGCed objects.

Implementation

LeakTrackingTestConfig.debug({
  this.leakDiagnosticConfig = const LeakDiagnosticConfig(
    collectStackTraceOnStart: true,
    collectStackTraceOnDisposal: true,
    collectRetainingPathForNotGCed: true,
  ),
  this.notGCedAllowList = const <String, int>{},
  this.notDisposedAllowList = const <String, int>{},
  this.allowAllNotDisposed = false,
  this.allowAllNotGCed = false,
  this.baselining,
  this.isLeakTrackingPaused = false,
});