remove method

void remove(
  1. T chip
)

Removes all chips matching the provided chip.

Uses equality comparison to find matching chips. Removes all occurrences and notifies listeners if any chips were removed.

Implementation

void remove(T chip) {
  value = value.where((item) => item != chip).toList();
}