getMinChildIndexForScrollOffset method

  1. @override
int getMinChildIndexForScrollOffset(
  1. double scrollOffset
)
override

The minimum child index that intersects with (or is after) this scroll offset.

Implementation

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