onScroll property

void Function(String key, double offset)? onScroll
final

Optional callback invoked when any scroll controller's position changes.

The key parameter indicates which controller triggered the callback.

Implementation

final void Function(String key, double offset)? onScroll;