Returns the index of child.
child
@override int indexOf(Node child) { if (isNodeElement) { return nodeAsElement!.nodes.indexOf(child); } return -1; }