withRetainingPath method

  1. @useResult
LeakTesting withRetainingPath()

Creates copy of settings, that collects the retaining path for not GCed objects.

Implementation

@useResult
LeakTesting withRetainingPath() {
  return copyWith(
    leakDiagnosticConfig: leakDiagnosticConfig.copyWith(
      collectRetainingPathForNotGCed: true,
    ),
  );
}