previousSibling property
Node?
get
previousSibling
Implementation
Node? get previousSibling {
if (parentNode == null) return null;
int index = parentNode!.childNodes.indexOf(this);
if (index - 1 < 0) return null;
return parentNode!.childNodes[index - 1];
}