findClosestDomNodeInDescendants method
Returns the nearest dom node in descendants.
Implementation
@override
Element? findClosestDomNodeInDescendants() {
var childElements = _childElements;
while (childElements.isNotEmpty && !childElements.first.hasDomNode) {
childElements = childElements.first._childElements;
}
if (childElements.isEmpty) {
return null;
}
return childElements.first.domNode;
}