hasListeners property

bool get hasListeners

Checks if there are any active listeners for the stream.

Implementation

bool get hasListeners => listenable.isNotEmpty;