animateDecimalAndInteger method

void animateDecimalAndInteger(
  1. double valueToSelect
)

Used to animate decimal number picker to selected value

Implementation

void animateDecimalAndInteger(double valueToSelect) {
  animateInt(valueToSelect.floor());
  animateDecimal(((valueToSelect - valueToSelect.floorToDouble()) *
          math.pow(10, decimalPlaces))
      .round());
}