fetchYear method

int fetchYear(
  1. CalendarType calendarType
)

Implementation

int fetchYear(CalendarType calendarType) {
  if (calendarType == CalendarType.persian) {
    return Jalali.fromDateTime(this).year;
  }
  return year;
}