retainWhere method

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

Retains only the elements that satisfy the given test.

Implementation

void retainWhere(bool Function(T element) test) => _data.retainWhere(test);