hasListeners property

bool hasListeners

returns true when the current notifier has subscribers

Implementation

bool get hasListeners => _listeners.isNotEmpty;