report method
Future<void>
report(
- Iterable<
UnusedCodeFileReport> records, { - UnusedCodeReportParams? additionalParams,
override
Implementation
@override
Future<void> report(
Iterable<UnusedCodeFileReport> records, {
UnusedCodeReportParams? additionalParams,
}) async {
if (records.isEmpty) {
return;
}
final encodedReport = json.encode({
'formatVersion': formatVersion,
'timestamp': getTimestamp(),
'unusedCode': records.map(_unusedCodeFileReportToJson).toList(),
});
output.write(encodedReport);
}