enterMultiSelectionMode method

void enterMultiSelectionMode({
  1. Iterable<K>? alsoSelect,
})

Enters multi-selection mode for items and notifies parent widget. This will also mark these items selected if alsoSelect is not null.

Implementation

void enterMultiSelectionMode({Iterable<K>? alsoSelect}) {
  if (!_multiSelecting) {
    _multiSelecting = true;
    _widget?.stateSetter.call();
    _widget?.onModeChanged?.call(true);
    if (alsoSelect != null) {
      select(alsoSelect); // also with stateSetter
    }
  }
}