deleteChip method

void deleteChip(
  1. String value
)

remove the chip from the list and calls widget.onChanged

Implementation

void deleteChip(String value) {
  if (widget.enabled) {
    setState(() => chips.remove(value));
    widget.onChanged(chips.toList(growable: false));
  }
}