retainWhere method
Removes all elements of this set that fail to satisfy test
Listeners are notified after all values have been removed.
Implementation
@override
void retainWhere(bool Function(T element) test) {
assert(_debugAssertNotDisposed());
_set!.retainWhere(test);
notifyListeners();
}