removeLastWhere method

bool removeLastWhere(
  1. ListTester<T> test
)

Removes the last element in this list that satisfies test.

Implementation

bool removeLastWhere(ListTester<T> test) {
  for (var i = length - 1; i >= 0; i--) {
    final element = this[i];
    if (test(element)) {
      removeAt(i);
      return true;
    }
  }
  return false;
}