incrementCalculator property Null safety

ScrollIncrementCalculator? incrementCalculator

An optional function that will be called to calculate the distance to scroll when the scrollable is asked to scroll via the keyboard using a ScrollAction.

If not supplied, the Scrollable will scroll a default amount when a keyboard navigation key is pressed (e.g. pageUp/pageDown, control-upArrow, etc.), or otherwise invoked by a ScrollAction.

If incrementCalculator is null, the default for is 80% of the size of the scroll window, and for ScrollIncrementType.line, 50 logical pixels.


final ScrollIncrementCalculator? incrementCalculator;