remove method

void remove(
  1. T item
)

remove method.

Implementation

void remove(T item) {
  throwIfDisposed('remove');

  /// Stores the =.
  final current = value;

  /// Stores the =.
  final index = current.indexOf(item);

  /// if method.
  if (index != -1) {
    removeAt(index);
  }
}