DateRangePickerMonthViewSettings constructor
const
DateRangePickerMonthViewSettings({
- int numberOfWeeksInView = 6,
- int firstDayOfWeek = 7,
- String dayFormat = 'EE',
- double viewHeaderHeight = 30,
- @Deprecated('Use selectionRadius property in SfDateRangePicker') double selectionRadius = -1,
- bool showTrailingAndLeadingDates = false,
- DateRangePickerViewHeaderStyle viewHeaderStyle = const DateRangePickerViewHeaderStyle(),
- bool enableSwipeSelection = true,
- List<
DateTime> ? blackoutDates, - List<
DateTime> ? specialDates, - List<
int> weekendDays = const <int>[6, 7], - bool showWeekNumber = false,
- 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);