retainAll method
Retains only elements that exist in elements.
final s = Ref({1, 2, 3, 4});
s.retainAll([2, 4, 6]); // -> {2, 4}
Implementation
void retainAll(Iterable<T> elements) {
$.retainAll(elements);
notifyChange();
}
Retains only elements that exist in elements.
final s = Ref({1, 2, 3, 4});
s.retainAll([2, 4, 6]); // -> {2, 4}
void retainAll(Iterable<T> elements) {
$.retainAll(elements);
notifyChange();
}