hasListeners property

bool get hasListeners
inherited

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

Implementation

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