nodeByIndex<T extends DOMNode> method
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?;
}