removeWhere method

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

Removes every element that satisfies test.

final s = Ref({1, 2, 3});
s.removeWhere((e) => e.isOdd); // -> {2}

Implementation

void removeWhere(bool Function(T element) test) {
  $.removeWhere(test);
  notifyChange();
}