moveDownByDOMNode method
Moves domNode
down in the parent children list. Also performs on mapped element.
Implementation
bool moveDownByDOMNode(DOMNode? domNode) {
if (domNode == null || !domNode.hasParent) return false;
var nodeRuntime = domNode.runtime;
var ok1 = domNode.moveDown();
var ok2 = nodeRuntime.moveDown();
if (ok1 != ok2) return false;
return ok1 && ok2;
}