removeMany method

IList<T> removeMany(
  1. T item
)

Removes all occurrences of item from this list.

IList<String> parts = ["head", "shoulders", "knees", "head", "toes"].lock;
parts.removeMany("head");
parts.join(", ");     // "shoulders, knees, toes"

The method has no effect if item was not in the list.

Implementation

IList<T> removeMany(T item) {
  final L<T> result = _l.removeMany(item);
  return identical(result, _l) ? this : IList<T>._unsafe(result, config: config);
}