hasListeners property

bool hasListeners

returns true when the current notifier has subscribers

Implementation

bool get hasListeners => !disposed ? _listeners!.isNotEmpty : false;