isSelected method

  1. @override
bool isSelected(
  1. int index
)
override

Checks if the item at the given index is selected.

Returns true if the item is selected, otherwise false.

  • Parameter index: The index of the item to check.

Implementation

@override
bool isSelected(int index) {
  return _selectedIndexes.contains(index);
}