hasNextNode method

bool hasNextNode()

Returns true if there are more nodes.

Implementation

bool hasNextNode() {
  return currentIndex + 1 < nodes.length;
}