remove method

bool remove(
  1. T value
)

Removes the first occurrence of value from this list.

Runtime is O(n).

Implementation

bool remove(T value) {
  final index = _rawList.indexOf(value);
  if (index == -1) return false;
  _rawList = _rawList.toList();
  _rawList.removeAt(index);
  _listChanged();
  return true;
}