toggleYearPicker method

void toggleYearPicker()

Shows the year picker if not currently shown, and the day picker otherwise.

Implementation

void toggleYearPicker() => type == .year ? jumpToDayPicker() : jumpToYearPicker();