nextNode method

void nextNode()

Used by the Editor to navigate to the next node.

Implementation

void nextNode() {
  currentIndex++;
  if (currentIndex >= nodes.length) {
    throw 'End of nodes for current page';
  }
}