activeSeoActionFlowStepIndexes function

List<int> activeSeoActionFlowStepIndexes(
  1. SeoActionFlowPlan plan,
  2. Map<String, String> rawValues
)

Returns the authored step indices active for the supplied raw choice values.

Implementation

List<int> activeSeoActionFlowStepIndexes(
  SeoActionFlowPlan plan,
  Map<String, String> rawValues,
) =>
    List.unmodifiable([
      for (final (index, step) in plan.steps.indexed)
        if (step.condition == null ||
            rawValues[step.condition!.fieldName] == step.condition!.value)
          index,
    ]);