HijriYearPicker constructor

HijriYearPicker({
  1. Key? key,
  2. required HijriCalendar selectedDate,
  3. required ValueChanged<HijriCalendar> onChanged,
  4. required HijriCalendar firstDate,
  5. required HijriCalendar lastDate,
})

Creates a year picker.

The selectedDate and onChanged arguments must not be null. The lastDate must be after the firstDate.

Rarely used directly. Instead, typically used as part of the dialog shown by showDatePicker.

Implementation

HijriYearPicker({
  Key? key,
  required this.selectedDate,
  required this.onChanged,
  required this.firstDate,
  required this.lastDate,
})  : assert(
          !firstDate.isAfter(lastDate.hYear, lastDate.hMonth, lastDate.hDay)),
      super(key: key);