summarizeStatuses function
Returns the lowest of statuses
to represent them.
Implementation
ReportStatus summarizeStatuses(Iterable<ReportStatus> statuses) {
return statuses.fold(ReportStatus.passed, (a, b) => minStatus(a, b)!);
}
Returns the lowest of statuses
to represent them.
ReportStatus summarizeStatuses(Iterable<ReportStatus> statuses) {
return statuses.fold(ReportStatus.passed, (a, b) => minStatus(a, b)!);
}