retainWhere method

void retainWhere(
  1. bool test(
    1. E element
    )
)

Implementation

void retainWhere(bool Function(E element) test) {
  value.retainWhere(test);
  set(value, force: true);
}