retainWhere method

  1. @override
void retainWhere(
  1. bool test(
    1. T element
    )
)
override

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();
}