getMonth method
Returns a DateTime with the given year and month.
Implementation
@override
HebrewDateTime getMonth(int year, int month) {
// Flutter carries the selected month into another year. Adar I maps to
// ordinary Adar when the target year lacks it; strict core validation does
// not normalize this missing slot.
if (month == HebrewDateTime.adarI &&
!HebrewDateTime.monthsOfYear(year).contains(month)) {
month = HebrewDateTime.adar;
}
return HebrewDateTime(year, month);
}