stepperRound function

double stepperRound(
  1. double amount,
  2. double maxValue
)

Implementation

double stepperRound(double amount, double maxValue) {
  var step = 500.0;
  if (amount <= 10000) {
    step = 100;
  }

  if (amount <= 500) {
    step = 10;
  }

  if (amount <= 100) {
    step = 1;
  }

  if (amount <= 50) {
    step = 1;
  }

  return constStepperRound(amount,
      maxValue: maxValue, minValue: 0, stepValue: step);
}