checklist library

Opt-in API for the curated approval checklist proof slice.

Functions

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'}) → List<SeoNode>
buildSeoApprovalChecklistPlanNodes(SeoApprovalChecklistComponentPlan plan) → List<SeoNode>
evaluateInitialSeoApprovalChecklistView(SeoApprovalChecklistViewProjection project, SeoApprovalChecklistState state, {required int itemCount}) → SeoApprovalChecklistEvaluation?
evaluateSeoApprovalChecklistAction({required SeoApprovalChecklistTransition transition, required SeoApprovalChecklistViewProjection project, required SeoApprovalChecklistEvaluation current, required SeoApprovalChecklistAction action, required int itemCount}) → SeoApprovalChecklistEvaluation?
initialSeoApprovalChecklistState({required int itemCount, Iterable<int> checkedIndexes = const []}) → SeoApprovalChecklistState?
isSeoApprovalChecklistActionEnabled(SeoApprovalChecklistState state, SeoApprovalChecklistAction action, int itemCount) → bool
isSeoApprovalChecklistComplete(SeoApprovalChecklistState state) → bool
isValidSeoApprovalChecklistState(SeoApprovalChecklistState state, int itemCount) → bool
prepareSeoApprovalChecklistComponent({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'}) → SeoApprovalChecklistComponentPlan?
seoApprovalChecklistCheckedCount(SeoApprovalChecklistState state) → int
transitionSeoApprovalChecklist(SeoApprovalChecklistState state, SeoApprovalChecklistAction action) → SeoApprovalChecklistState