rangePickerDelegate property

CalendarDelegate<DateTime> get rangePickerDelegate

Delegate for showDateRangePicker, including supported-range endpoints.

Flutter probes empty leading cells and keyboard targets before checking bounds. This adapter supplies native comparison dates for those probes; all selectable dates and results remain HijriDateTime. Use this only with the range picker, and this delegate for general calendar arithmetic. On Flutter 3.32, also pass calendarDateRangePickerBuilder from package:general_datetime/delegates.dart as the range picker's builder.

Implementation

CalendarDelegate<DateTime> get rangePickerDelegate =>
    RangePickerCalendarDelegate(this, minimumYear: HijriDateTime.minimumYear);