listenerCount method

int listenerCount([
  1. String? eventName
])

Returns the number of listeners for the eventName events. If no eventName is provided, the total number of listeners is returned.

Implementation

int listenerCount([String? eventName]) => impl.listenerCount(eventName);