setEventListenerBreakpoint method

Future<void> setEventListenerBreakpoint(
  1. String eventName, {
  2. String? targetName,
})

Sets breakpoint on particular DOM event. eventName DOM Event name to stop on (any DOM event will do). targetName EventTarget interface name to stop on. If equal to "*" or not provided, will stop on any EventTarget.

Implementation

Future<void> setEventListenerBreakpoint(String eventName,
    {String? targetName}) async {
  await _client.send('DOMDebugger.setEventListenerBreakpoint', {
    'eventName': eventName,
    if (targetName != null) 'targetName': targetName,
  });
}