updateOptions method

void updateOptions(
  1. Iterable<T> choosableOptions
)

If currently all options are selected (isAllSelected returns true), that state will be preserved. If not, what options are currently selected will stay the same.

Implementation

void updateOptions(Iterable<T> choosableOptions) {
  if (isAllSelected) {
    _selected = Set.from(choosableOptions.map(indexGetter));
  }
  _init(choosableOptions);
}