rowAtOffset method

int rowAtOffset(
  1. double y
)

The row containing y in content space, or -1 when y falls outside the content.

Implementation

int rowAtOffset(double y) => y < 0 || y >= totalHeight ? -1 : clampedRowAt(y);