listenerCount method

int listenerCount([
  1. dynamic event
])

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

Implementation

int listenerCount([dynamic event]) =>
    impl.listenerCount(event is EventFilter ? event.impl : event);