add method

void add(
  1. T chip
)

Adds a new chip to the end of the current list.

Notifies listeners of the change. The chip is appended to maintain the existing order of chips in the input.

Implementation

void add(T chip) {
  value = [...value, chip];
}