setComparatorIndex method

void setComparatorIndex(
  1. int comparator, {
  2. bool reversed = false,
})

Implementation

void setComparatorIndex(int comparator, {bool reversed = false}) {
  assert(_currentComparator >= 0 && _currentComparator < comparators.length,
      "Invalid comparator index");
  _currentComparator = comparator;
  _reversedComparator = reversed;
  update();
}