listenerCount property

int get listenerCount

The number of active listeners.

Implementation

int get listenerCount => _listeners?.length ?? 0;