GestureForceInterpolation typedef Null safety

GestureForceInterpolation = double Function(double pressureMin, double pressureMax, double pressure)

Signature used by ForcePressGestureRecognizer for interpolating the raw device pressure to a value in the range [0, 1] given the device's pressure min and pressure max.

Implementation

typedef GestureForceInterpolation = double Function(double pressureMin, double pressureMax, double pressure);