getMappedDOMNode method
Returns the mapped DOMNode associated with element
.
checkParents
If true, also checks for mapped element.parent
.
Implementation
DOMNode? getMappedDOMNode(T? element, {bool checkParents = false}) {
if (element == null) return null;
var domNode = _elementToDOMNodeMap[element];
if (domNode != null) return domNode;
if (!checkParents) return null;
var parent = domGenerator.getNodeParent(element);
return getMappedDOMNode(parent, checkParents: true);
}