removeAt method

void removeAt(
  1. int index
)

Removes the chip at the specified index.

Throws RangeError if the index is out of bounds. Notifies listeners of the change if the removal is successful.

Implementation

void removeAt(int index) {
  final newList = [...value];
  newList.removeAt(index);
  value = newList;
}