currentElement property

Element? get currentElement

The html.Element of the Widget in the tree that has this Ref.

Implementation

html.Element? get currentElement {
  if (_currentNode is PaintedNode) {
    return (_currentNode as PaintedNode).element;
  } else {
    return null;
  }
}