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> newOptions)
override

The available options for this container.

Implementation

@override
set options(SelectionOptions<T> newOptions) {
  _changeDetector.markForCheck();
  super.options = newOptions;

  _updateActiveModel();
  _setInitialActiveItem();

  _optionsListener?.cancel();
  _optionsListener = options.stream.listen((_) {
    _changeDetector.markForCheck();
    _updateActiveModel();
    _setInitialActiveItem();
  });
}