hasObservers property

bool get hasObservers

Whether the state has listeners or not

Implementation

bool get hasObservers =>
    _listeners.isNotEmpty || _dependentListeners.isNotEmpty;