ScrollIncrementCalculator typedef Null safety

ScrollIncrementCalculator = double Function(ScrollIncrementDetails details)

A typedef for a function that can calculate the offset for a type of scroll increment given a ScrollIncrementDetails.

This function is used as the type for Scrollable.incrementCalculator, which is called from a ScrollAction.

Implementation

typedef ScrollIncrementCalculator = double Function(ScrollIncrementDetails details);