item | Item to add. |
parentId | The parent id for the item. |
childIndex | The child index in the parent's children list. |
rebuildTree | Whether we should call RebuildTree and RefreshItems or not. Set to false when doing multiple additions to save a few rebuilds. |
Adds an item to the existing tree.