selectionMode property Null safety

DateRangePickerSelectionMode selectionMode
final

Defines the selection mode for SfHijriDateRangePicker.

Defaults to DateRangePickerSelectionMode.single.

Also refer DateRangePickerSelectionMode.

Note: If it set as Range or MultiRange, the navigation through swiping will be restricted by default and the navigation between views can be achieved by using the navigation arrows in header view.

If it is set as Range or MultiRange and also the HijriDatePickerMonthViewSettings.enableSwipeSelection set as false the navigation through swiping will work as it is without any restriction.

See also:

 Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfHijriDateRangePicker(
         view: HijriDatePickerView.month,
         selectionMode: DateRangePickerSelectionMode.range,
         minDate: HijriDateTime(1440, 02, 05),
         maxDate: HijriDateTime(1450, 12, 06),
       ),
     ),
   );
 }

Implementation

final DateRangePickerSelectionMode selectionMode;