yearIn method
Returns the year in the specified calendar era.
Implementation
int yearIn(CalendarEra era) => switch (era) {
CalendarEra.common => year,
CalendarEra.buddhist => year + 543,
CalendarEra.japanese => _japaneseEraYear(),
CalendarEra.minguo => year - 1911,
};