valueSelection property
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);
});
}