nextSibling property
Node?
get
nextSibling
Implementation
Node? get nextSibling {
if (parentNode == null) return null;
int index = parentNode!.childNodes.indexOf(this);
if (index + 1 > parentNode!.childNodes.length - 1) return null;
return parentNode!.childNodes[index + 1];
}