displayDate property Null safety

HijriDateTime? displayDate

The first date of the current visible view month, when the HijriDatePickerMonthViewSettings.numberOfWeeksInView set with default value 6.

If the HijriDatePickerMonthViewSettings.numberOfWeeksInView property set with value other then 6, this will return the first visible date of the current month.


HijriDateTime? get displayDate => _displayDate;
void displayDate=(HijriDateTime? date)

Navigates to the given date programmatically without any animation in the SfHijriDateRangePicker by checking that the date falls in between the SfHijriDateRangePicker.minDate and SfHijriDateRangePicker.maxDate date range.

If the date falls beyond the SfHijriDateRangePicker.minDate and SfHijriDateRangePicker.maxDate the widget will move the widgets min or max date.

See also:

class MyAppState extends State<MyApp> {
HijriDatePickerController _pickerController = HijriDatePickerController();

 void initState() {
   _pickerController.displayDate = HijriDateTime(2022, 02, 05);

 Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfHijriDateRangePicker(
         controller: _pickerController,
         view: HijriDatePickerView.month,
         selectionMode: DateRangePickerSelectionMode.single,


set displayDate(HijriDateTime? date) {
  if (isSameDate(_displayDate, date)) {

  _displayDate = date;