onScroll property
Called when the viewer's vertical scroll offset changes (in view pixels, 0 = top of the document). Useful to collapse/expand surrounding chrome (header, toolbar) while the user reads.
Implementation
final ValueChanged<double>? onScroll;