isSelectedAt method

bool isSelectedAt(
  1. List<T> items,
  2. int index
)

Returns whether the index is selected.

Implementation

bool isSelectedAt(
  List<T> items,
  int index,
) {
  if (index < 0 || index >= items.length) {
    return false;
  }

  return controller.isSelected(items[index]);
}