buildSeoApprovalChecklistNodes function

List<SeoNode> buildSeoApprovalChecklistNodes({
  1. required List<SeoApprovalChecklistItemEntry> items,
  2. required SeoApprovalChecklistState initialState,
  3. required SeoApprovalChecklistViewProjection project,
  4. String? interactionId,
  5. int headingLevel = 2,
  6. String heading = 'Approval checklist',
  7. String interactionLabel = 'Approval checklist controls',
  8. String statusLabel = 'Status',
  9. String progressLabel = 'Progress',
})

Implementation

List<SeoNode> buildSeoApprovalChecklistNodes({
  required List<SeoApprovalChecklistItemEntry> items,
  required SeoApprovalChecklistState initialState,
  required SeoApprovalChecklistViewProjection project,
  String? interactionId,
  int headingLevel = 2,
  String heading = 'Approval checklist',
  String interactionLabel = 'Approval checklist controls',
  String statusLabel = 'Status',
  String progressLabel = 'Progress',
}) {
  final plan = prepareSeoApprovalChecklistComponent(
    items: items,
    initialState: initialState,
    project: project,
    interactionId: interactionId,
    headingLevel: headingLevel,
    heading: heading,
    interactionLabel: interactionLabel,
    statusLabel: statusLabel,
    progressLabel: progressLabel,
  );
  return plan == null ? const [] : buildSeoApprovalChecklistPlanNodes(plan);
}