DateRangePickerSelectionMode enum Null safety

Selection modes for SfDateRangePicker.

DateRangePickerSelectionShape, which used to set different shape for the selection view in date range picker.

Constants

extendableRange → const DateRangePickerSelectionMode

Extends the selected range with the new selected date in the date range picker. If a new date, after the existing selected range’s end date, is selected, the newly selected range’s start date stays unchanged while the end date will be changed to the newly selected date. Similarly, if a new date, before the existing selected range’s start date, is selected, the newly selected range’s start date will be changed to the newly selected date while the end date still is unchanged. Selecting a date between the ranges will update the range end date if the date selection index is half or more of the total dates count and vice versa for range start date. The range selection will not be updated if you tap on the blackout and disabled dates.

Note: The hovering effect which occurrs while extend the range will not be displayed when the DateRangePickerNavigationMode set as DateRangePickerNavigationMode.scroll.

See also:

  • pickerDateRange, which used to store the start and end date of the range in date range picker. HijriDateRange, which used to store the start and end date of the range in hijri date range picker.
const DateRangePickerSelectionMode(4)
multiple → const DateRangePickerSelectionMode
  • DateRangePickerSelection.multiple, Allows multiple date selection, selecting a new date will not remove the selection for previous dates, allows to select as many dates as possible.
const DateRangePickerSelectionMode(1)
multiRange → const DateRangePickerSelectionMode
  • DateRangePickerSelection.multiRange, Allows to select a multiple ranges of dates.

See also: PickerDateRange.

const DateRangePickerSelectionMode(3)
range → const DateRangePickerSelectionMode
  • DateRangePickerSelection.range, Allows to select a single range of dates. See also: PickerDateRange
const DateRangePickerSelectionMode(2)
single → const DateRangePickerSelectionMode
  • DateRangePickerSelectionMode.single, Allows to select a single date, selecting a new date will remove the selection for previous date and updates selection to the new selected date.
const DateRangePickerSelectionMode(0)
values → const List<DateRangePickerSelectionMode>

A constant List of the values in this enum, in order of their declaration.

const List<DateRangePickerSelectionMode>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited