iterableToYaml static method
- String title,
- Iterable<
LeakReport> ? leaks, { - String indent = '',
- required bool phasesAreTests,
Implementation
static String iterableToYaml(
String title,
Iterable<LeakReport>? leaks, {
String indent = '',
required bool phasesAreTests,
}) {
if (leaks == null || leaks.isEmpty) return '';
return '''$title:
$indent total: ${leaks.length}
$indent objects:
${leaks.map((e) => e.toYaml('$indent ', phasesAreTests: phasesAreTests)).join()}
''';
}