hasListeners property

bool hasListeners

If a listener has been added using addListener and hasn't been removed yet.

Implementation

bool get hasListeners {
  assert(_debugIsMounted());
  return _listeners.isNotEmpty;
}