DateRangePickerMonthViewSettings constructor Null safety

const DateRangePickerMonthViewSettings(
  1. {int numberOfWeeksInView = 6,
  2. int firstDayOfWeek = 7,
  3. String dayFormat = 'EE',
  4. double viewHeaderHeight = 30,
  5. @Deprecated('Use selectionRadius property in SfDateRangePicker') double selectionRadius = -1,
  6. bool showTrailingAndLeadingDates = false,
  7. DateRangePickerViewHeaderStyle viewHeaderStyle = const DateRangePickerViewHeaderStyle(),
  8. bool enableSwipeSelection = true,
  9. List<DateTime>? blackoutDates,
  10. List<DateTime>? specialDates,
  11. List<int> weekendDays = const <int>[6, 7],
  12. bool showWeekNumber = false,
  13. DateRangePickerWeekNumberStyle weekNumberStyle = const DateRangePickerWeekNumberStyle()}
)

Creates a date range picker month view settings for date range picker.

The properties allows to customize the month view of SfDateRangePicker.

Implementation

const DateRangePickerMonthViewSettings(
    {this.numberOfWeeksInView = 6,
    this.firstDayOfWeek = 7,
    this.dayFormat = 'EE',
    this.viewHeaderHeight = 30,
    @Deprecated('Use selectionRadius property in SfDateRangePicker')
        // ignore: deprecated_member_use, deprecated_member_use_from_same_package
        this.selectionRadius = -1,
    this.showTrailingAndLeadingDates = false,
    this.viewHeaderStyle = const DateRangePickerViewHeaderStyle(),
    this.enableSwipeSelection = true,
    this.blackoutDates,
    this.specialDates,
    this.weekendDays = const <int>[6, 7],
    this.showWeekNumber = false,
    this.weekNumberStyle = const DateRangePickerWeekNumberStyle()})
    : assert(numberOfWeeksInView >= 1 && numberOfWeeksInView <= 6),
      assert(firstDayOfWeek >= 1 && firstDayOfWeek <= 7),
      assert(viewHeaderHeight >= -1);