invertSelection method

void invertSelection()

Replace selection by all not selected items

Implementation

void invertSelection() {
  _selectedIndexes = List<int>.generate(_itemsCount, (i) => i)
      .toSet()
      .difference(_selectedIndexes.toSet())
      .toList();

  notifyListeners();
}