getItemTop method

double getItemTop(
  1. int index
)

Implementation

double getItemTop(int index) {
  return (index / crossAxisCount).floor().toDouble() * boxSize;
}