select method

  1. @override
void select(
  1. T value,
  2. bool selected
)
override

Handles a change in the selection.

Implementation

@override
void select(T value, bool selected) {
  if (!selected || contains(value)) {
    return;
  }

  _values
    ..clear()
    ..add(value);

  notifyListeners();
}