getMinChildIndexForScrollOffset method

  1. @override
int getMinChildIndexForScrollOffset (double scrollOffset)
override

The minimum child index that is visible at (or after) this scroll offset.

Implementation

@override
int getMinChildIndexForScrollOffset(double scrollOffset) {
  return mainAxisStride > 0.0 ? crossAxisCount * (scrollOffset ~/ mainAxisStride) : 0;
}