selectionBehavior property
SelectionBehavior?
get
selectionBehavior
Implementation
SelectionBehavior? get selectionBehavior => _selectionBehavior;
set
selectionBehavior
(SelectionBehavior? value)
Implementation
set selectionBehavior(SelectionBehavior? value) {
if (_selectionBehavior != value) {
_selectionBehavior?.selectionController
?.removeListener(_handleSelectionControllerChange);
_selectionBehavior = value;
_effectiveSelectionBehavior = value;
_selectionBehavior?.selectionController
?.addListener(_handleSelectionControllerChange);
if (_selectionEnabled) {
_initSelection();
} else {
parent?.selectionController
?..removeSelectionListener(_handleSelection)
..removeDeselectionListener(_handleDeselection);
}
}
}