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