createDOMEvent method

  1. @override
DOMEvent? createDOMEvent(
  1. DOMTreeMap<Node> treeMap,
  2. Object? event
)
override

Implementation

@override
DOMEvent? createDOMEvent(DOMTreeMap<Node> treeMap, event) {
  if (event is Event) {
    var eventTarget = event.target as Node?;
    var domTarget = treeMap.getMappedDOMNode(eventTarget);

    return DOMEvent(treeMap, event, eventTarget, domTarget as DOMElement?);
  }

  return null;
}