initialSelectedRange property Null safety

HijriDateRange? initialSelectedRange

The date range to initially select on the SfHijriDateRangePicker.

If it is not null the SfHijriDateRangePicker will select the range of dates that set to this property.

Defaults to null.

Note: If the controller and it's controller.selectedRange property is not null then this property will be ignored and the widget render the selection for the range given in controller.selectedRange.

It is only applicable when the selectionMode set as DateRangePickerSelectionMode.range.

See also:

Widget build(BuildContext context) {
return MaterialApp(
     home: Scaffold(
       body: SfHijriDateRangePicker(
         view: HijriDatePickerView.month,
         selectionMode: DateRangePickerSelectionMode.range,
         initialSelectedRange: HijriDateRange(


final HijriDateRange? initialSelectedRange;