copyWithRemovedWhere method

List<T> copyWithRemovedWhere(
  1. bool test(
    1. T element
    )
)

Returns a new iterable with elements removed that match the test

Implementation

List<T> copyWithRemovedWhere(bool Function(T element) test) {
  final newList = List<T>.from(this);
  newList.removeWhere(test);
  return newList;
}