setNavigationRuleForTriggerStepIdentifier method

void setNavigationRuleForTriggerStepIdentifier(
  1. RPStepNavigationRule stepNavigationRule,
  2. String triggerStepIdentifier
)

Adds a navigation rule to a step using its identifier.

  RPNavigableOrderedTask navigableSurveyTask = RPNavigableOrderedTask(
    "NavigableTaskID",
    [
      instructionStep,
      questionStep1,
      questionStep2,
    ],
  )
  ..setNavigationRuleForTriggerStepIdentifier(someNavigationRule, questionStep1.identifier);

Implementation

void setNavigationRuleForTriggerStepIdentifier(
    RPStepNavigationRule stepNavigationRule, String triggerStepIdentifier) {
  stepNavigationRules[triggerStepIdentifier] = stepNavigationRule;
}