targetElement property

Element? get targetElement

The html.Element of the Widget in the tree that fired this event.

Implementation

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