animateInt method

void animateInt(
  1. int valueToSelect
)

Used to animate integer number picker to new selected value

Implementation

void animateInt(int valueToSelect) {
  int diff = valueToSelect - minValue;
  int index = diff ~/ step;
  animateIntToIndex(index);
}