getIntFromTimePickerIntervalEnum function

int getIntFromTimePickerIntervalEnum(
  1. TimePickerInterval? interval
)

Implementation

int getIntFromTimePickerIntervalEnum(TimePickerInterval? interval) {
  switch (interval) {
    case TimePickerInterval.FIVE:
      return 5;
    case TimePickerInterval.TEN:
      return 10;
    case TimePickerInterval.FIFTEEN:
      return 15;
    case TimePickerInterval.THIRTY:
      return 30;
    default:
      return 1;
  }
}