setNavigationRuleForTriggerStepIdentifier method Null safety

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

Adds a navigation rule to 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;
}