renderSimpleSectionSummary function
Renders a summary block for sections that can have only a single issue.
Implementation
String renderSimpleSectionSummary({
required String title,
required String? description,
required int grantedPoints,
required int maxPoints,
}) {
return _makeSummary([
Subsection(
title,
[if (description != null) Issue(description)],
grantedPoints,
maxPoints,
maxPoints == grantedPoints
? ReportStatus.passed
: grantedPoints == 0
? ReportStatus.failed
: ReportStatus.partial,
)
], basePath: null);
}