removeFirst method

void removeFirst(
  1. T item
)

Removes the first occurrence of item from the list.

Implementation

void removeFirst(T item) {
  final i = indexOf(item);
  if (i != -1) removeAt(i);
}