hasSelectionObservers property
Returns true if a subscriber is listening to selectionChanges.
Implementation
@override
bool get hasSelectionObservers {
return _selectionChangeController != null &&
(_selectionChangeController?.hasListener ?? false);
}