remove method

void remove(
  1. T item
)

Removes item from the list.

Implementation

void remove(T item) {
  if (!value.contains(item)) return;

  final list = toList();
  list.remove(item);
  value = list;
}