getYearAttributes static method
Implementation
static YearAttribute getYearAttributes({required int tibetanYear}) {
String animal = YEAR_ANIMALS[(tibetanYear + 1) % 12];
String element = YEAR_ELEMENTS[(tibetanYear - 1) ~/ 2 % 5];
String gender = YEAR_GENDER[(tibetanYear + 1) % 2];
return YearAttribute(animal: animal, element: element, gender: gender);
}