generateMinutes function
Generate a List of minutes
Implementation
List<int?> generateMinutes(int divisions, MinuteInterval? interval, min, max) {
final minutes = List<int?>.generate(divisions + 1, (index) {
final val = min.round() + (getIntFromMinuteIntervalEnum(interval) * index);
if (val >= max) {
return max.round();
}
return val;
});
return minutes;
}