scrollOffsetToIndex method Null safety
- double scrollOffset
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();