withRetainingPath method
Creates copy of settings, that collects the retaining path for not GCed objects.
Implementation
@useResult
LeakTesting withRetainingPath() {
return copyWith(
leakDiagnosticConfig: leakDiagnosticConfig.copyWith(
collectRetainingPathForNotGCed: true,
),
);
}