insertNode

fun insertNode(parent: StateNode, child: StateNode, index: Int = getChildCount(parent))(source)

Inserts child as the indexth child of parent.

Throws an exception if index is out of bounds in parent (of course allowing index to equal the getChildCount of parent).