indexToScrollOffset method

double indexToScrollOffset(
  1. int index
)

Returns the scroll offset of the child with the given index.

Implementation

double indexToScrollOffset(int index) => index * itemExtent;