listenerCount method

int listenerCount(
  1. String eventName
)

Implementation

int listenerCount(String eventName) {
  assert(eventName != null);
  assert(eventName.isNotEmpty);

  return listeners(eventName)!.length;
}