selectAll method

void selectAll(
  1. int count
)

Selects all indices from 0 to count-1.

Only works in multi-select mode. In single-select mode, this is a no-op.

Implementation

void selectAll(int count) {
  if (!multiSelect) return;
  _selected.clear();
  for (var i = 0; i < count; i++) {
    _selected.add(i);
  }
}