The row containing y in content space, or -1 when y falls outside the content.
y
int rowAtOffset(double y) => y < 0 || y >= totalHeight ? -1 : clampedRowAt(y);