remove method

void remove(
  1. T val
)

Removes the first occurence of the item

Implementation

void remove(T val) {
  final index = value.indexWhere(
    (element) => element == val,
  );

  removeAt(index);
}