cacheChildIndices method

void cacheChildIndices()

Implementation

void cacheChildIndices() {
  if (childrenAsList.isEmpty || areChildIndicesCached) return;
  (childrenAsList[length - 1] as ITreeNode).isLastChild = true;
  areChildIndicesCached = true;
}