matchingTarget property

  1. @override
Element matchingTarget
override

A pointer to the element whose CSS selector matched within which an event was fired. If this Event was not associated with any Event delegation, accessing this value will throw an UnsupportedError.

Implementation

@override
Element get matchingTarget {
  if (originalEvent != null) return originalEvent!.matchingTarget;
  throw new UnsupportedError('Cannot call matchingTarget if this Event did'
    ' not arise as a result of event delegation.'); //follow SDK spec
}