OnChange typedef Null safety

OnChange = void Function(double value)

Implementation

typedef void OnChange(double value);