scrollOffsetToIndex method
Returns the index of the child at the given offset.
Implementation
int scrollOffsetToIndex(double scrollOffset) => (scrollOffset / itemExtent).floor();
Returns the index of the child at the given offset.
int scrollOffsetToIndex(double scrollOffset) => (scrollOffset / itemExtent).floor();