currentListIndex property

int get currentListIndex

Gets the current visible list index based on scroll position

Implementation

int get currentListIndex {
  if (!isAttached || _isDisposed) return 0;
  return (scrollPosition / _itemWidth).round();
}