indexOfNode method

int indexOfNode(
  1. DOMNode node
)

Returns the index of node.

Implementation

int indexOfNode(DOMNode node) {
  if (isEmptyContent) return -1;
  return _content!.indexOf(node);
}