findClosestDomNodeInAncestors method
Returns the nearest dom node in ancestors.
Implementation
@override
Element? findClosestDomNodeInAncestors() {
var ancestor = _parent;
while (null != ancestor && !ancestor.hasDomNode) {
ancestor = ancestor._parent;
}
return ancestor?.domNode;
}