addNavigationRule method

void addNavigationRule({
  1. required String forTriggerStepIdentifier,
  2. required NavigationRule navigationRule,
})

Adds a NavigationRule to the navigationRule Map It only adds the NavigationRule if none is already set for the StepIdentifier

Implementation

void addNavigationRule({
  required String forTriggerStepIdentifier,
  required NavigationRule navigationRule,
}) {
  navigationRules.putIfAbsent(forTriggerStepIdentifier, () => navigationRule);
}