jumpToNewRepeatPrompt method

void jumpToNewRepeatPrompt()

Moves forward to the new-repeat prompt of the repeat containing the current index.

Implementation

void jumpToNewRepeatPrompt() {
  final repeatIndex = _repeatGroupIndex(model.formIndex, _form);
  if (repeatIndex == null) return;
  final repeatDepth = repeatIndex.depth;
  do {
    stepToNextEvent();
  } while (model.event() != FormEntryEvent.promptNewRepeat ||
      model.formIndex.depth != repeatDepth);
}