getIntFromMinuteIntervalEnum function

int getIntFromMinuteIntervalEnum(
  1. MinuteInterval? interval
)

Implementation

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