options property

SelectionOptions<T> get options
inherited

The available options for this container.

Implementation

SelectionOptions<T> options = SelectionOptions.fromList(<T>[]);
  1. @override
set options (SelectionOptions<T>? options)
override

The available options for this container.

Implementation

@override
set options(SelectionOptions<T>? options) {
  //if (options == null) return;
  var localOptions = options ?? SelectionOptions.fromList([]);
  super.options = localOptions;
  activeModel.items = localOptions.optionsList;
  _optionsListener?.cancel();
  _optionsListener = localOptions.stream.listen((_) {
    activeModel.items = localOptions.optionsList;
    _updateItemActivation();
    _changeDetector.markForCheck();
  });
  if (!_filterScheduled) {
    _filterSuggestions();
  }
}