pageStep static method

double pageStep(
  1. double step,
  2. int? divisions
)

Larger keyboard step: one division, or 10% of the range when continuous.

Implementation

static double pageStep(double step, int? divisions) {
  if (divisions != null && divisions > 0) {
    return step;
  }
  return step * 10;
}