extendableRangeSelectionDirection property

ExtendableRangeSelectionDirection extendableRangeSelectionDirection
final

Allows to customize the extendable range selection direction.

Defaults to ExtendableRangeSelectionDirection.both.

See also: selectionMode, which contains available selection modes for date range picker.

Note: This applicable only when the selectionMode set as DateRangePickerSelectionMode.extendableRange.

 Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfDateRangePicker(
         view: DateRangePickerView.month,
         selectionMode: DateRangePickerSelectionMode.range,
         minDate: DateTime(2019, 02, 05),
         maxDate: DateTime(2021, 12, 06),
         extendableRangeSelectionDirection:
          ExtendableRangeSelectionDirection.backward,
       ),
     ),
   );
 }

Implementation

final ExtendableRangeSelectionDirection extendableRangeSelectionDirection;