hasListeners property

bool get hasListeners

returns true when the current notifier has subscribers

Implementation

bool get hasListeners => _listeners.isNotEmpty;