valueSelection property

  1. @Input('selectionModel')
set valueSelection (SelectionModel value)

Selection model containing value object.

Implementation

@Input('selectionModel')
set valueSelection(SelectionModel value) {
  if (_valueSelection == value) return;
  _selectionSubscription?.cancel();
  _valueSelection = value;
  _selectionSubscription = _valueSelection?.selectionChanges.listen((_) {
    selected = _valueSelection?.selectedValues.firstWhereOrNull((_) => true);
  });
}