removeItem method

bool removeItem(
  1. T item
)

Implementation

bool removeItem(T item) {
  final currentList = List<T>.from(list);
  final removed = currentList.remove(item);
  if (removed) {
    value = currentList;
  }
  return removed;
}