odometerWidth function

double odometerWidth(
  1. double height,
  2. int digits,
  3. int decimals
)

Implementation

double odometerWidth(double height, int digits, int decimals) {
  double digitWidth = (height * 0.68).floorToDouble();
  double width = digitWidth * (digits + decimals);
  return width;
}