nodeByIndex<T extends DOMNode> method

T? nodeByIndex<T extends DOMNode>(
  1. int? index
)

Returns a child node by index.

Implementation

T? nodeByIndex<T extends DOMNode>(int? index) {
  if (index == null || isEmptyContent) return null;
  return _content![index] as T?;
}