getMin function
Get the minimum minute from interval
Implementation
double getMin(double? minMinute, TimePickerInterval? interval) {
if (minMinute == 0) {
return 0;
}
int step = getIntFromTimePickerIntervalEnum(interval);
double min = -1;
double i = 1;
while (min < 0) {
double val = i * step;
if (val >= minMinute!) {
min = val;
}
i++;
}
return min;
}