getMonth method

String getMonth(
  1. int month
)

Implementation

String getMonth(int month) {
  switch (month) {
    case DateTime.january:
      return monthJanuary;
    case DateTime.february:
      return monthFebruary;
    case DateTime.march:
      return monthMarch;
    case DateTime.april:
      return monthApril;
    case DateTime.may:
      return monthMay;
    case DateTime.june:
      return monthJune;
    case DateTime.july:
      return monthJuly;
    case DateTime.august:
      return monthAugust;
    case DateTime.september:
      return monthSeptember;
    case DateTime.october:
      return monthOctober;
    case DateTime.november:
      return monthNovember;
    case DateTime.december:
      return monthDecember;
    default:
      throw ArgumentError.value(month, 'month');
  }
}