keyboardStep static method
Arrow step, or the Space+arrow step when coarse is true.
Implementation
static double keyboardStep(
double min,
double max,
int? divisions, {
required bool coarse,
}) {
if (divisions != null && divisions > 0) {
return (max - min) / divisions;
}
final span = max - min;
return coarse ? span / 10 : span / 100;
}