valueToFactorCallback property

ValueToFactorCallback? valueToFactorCallback
final

Returns the converted factor value from the axis value

The arguments to this method is an axis value. The calculated value of the factor should be between 0 and 1. If the axis ranges from 0 to 100 and pass the axis value is 50, this method return factor value as 0.5. Overriding method, you can modify the factor value based on needs.

Implementation

final ValueToFactorCallback? valueToFactorCallback;