isValidMonth static method

bool isValidMonth(
  1. int month
)

Validates if a month is valid (1-12)

Returns true if the month is valid, false otherwise

Implementation

static bool isValidMonth(int month) {
  return month >= 1 && month <= 12;
}