hasListener property

bool hasListener

Returns true if there are any active listeners.

Implementation

bool get hasListener => _subscriptions.isNotEmpty;