CalendarDatePicker2Config constructor

CalendarDatePicker2Config({
  1. CalendarDatePicker2Type? calendarType,
  2. DateTime? firstDate,
  3. DateTime? lastDate,
  4. DateTime? currentDate,
  5. CalendarDatePicker2Mode? calendarViewMode,
  6. List<String>? weekdayLabels,
  7. TextStyle? weekdayLabelTextStyle,
  8. WeekdayLabelBuilder? weekdayLabelBuilder,
  9. int? firstDayOfWeek,
  10. double? controlsHeight,
  11. Widget? lastMonthIcon,
  12. bool? hideLastMonthIcon,
  13. Widget? nextMonthIcon,
  14. bool? hideNextMonthIcon,
  15. TextStyle? controlsTextStyle,
  16. bool? animateToDisplayedMonthDate,
  17. Map<CalendarDatePicker2SemanticsLabel, String?>? semanticsDictionary,
  18. bool? disableVibration,
  19. PageController? dayViewController,
  20. TextStyle? dayTextStyle,
  21. TextStyle? selectedDayTextStyle,
  22. Color? selectedDayHighlightColor,
  23. Color? selectedRangeHighlightColor,
  24. TextStyle? disabledDayTextStyle,
  25. TextStyle? todayTextStyle,
  26. TextStyle? yearTextStyle,
  27. TextStyle? selectedYearTextStyle,
  28. TextStyle? disabledYearTextStyle,
  29. TextStyle? monthTextStyle,
  30. TextStyle? selectedMonthTextStyle,
  31. TextStyle? disabledMonthTextStyle,
  32. BorderRadius? dayBorderRadius,
  33. BorderRadius? yearBorderRadius,
  34. BorderRadius? monthBorderRadius,
  35. SelectableDayPredicate? selectableDayPredicate,
  36. SelectableMonthPredicate? selectableMonthPredicate,
  37. SelectableYearPredicate? selectableYearPredicate,
  38. DayTextStylePredicate? dayTextStylePredicate,
  39. DayBuilder? dayBuilder,
  40. YearBuilder? yearBuilder,
  41. MonthBuilder? monthBuilder,
  42. ScrollController? monthViewController,
  43. ScrollController? yearViewController,
  44. bool? disableModePicker,
  45. bool? centerAlignModePicker,
  46. Widget? customModePickerIcon,
  47. ModePickerTextHandler? modePickerTextHandler,
  48. ModePickerBuilder? modePickerBuilder,
  49. double? modePickersGap,
  50. TextStyle? selectedRangeDayTextStyle,
  51. bool? rangeBidirectional,
  52. ScrollPhysics? calendarViewScrollPhysics,
  53. Color? daySplashColor,
  54. bool? allowSameValueSelection,
  55. bool? disableMonthPicker,
  56. bool? useAbbrLabelForMonthModePicker,
  57. double? dayMaxWidth,
  58. bool? hideMonthPickerDividers,
  59. bool? hideYearPickerDividers,
  60. TextStyle? scrollViewTopHeaderTextStyle,
  61. bool? hideScrollViewTopHeader,
  62. bool? hideScrollViewTopHeaderDivider,
  63. bool? hideScrollViewMonthWeekHeader,
  64. BoxConstraints? scrollViewConstraints,
  65. ScrollViewMonthYearBuilder? scrollViewMonthYearBuilder,
  66. ScrollViewOnScrolling? scrollViewOnScrolling,
  67. ScrollController? scrollViewController,
  68. bool? dynamicCalendarRows,
  69. Axis? dayModeScrollDirection,
  70. SelectedRangeHighlightBuilder? selectedRangeHighlightBuilder,
  71. SelectedRangeDecorationPredicate? selectedRangeDecorationPredicate,
})

Implementation

CalendarDatePicker2Config({
  CalendarDatePicker2Type? calendarType,
  DateTime? firstDate,
  DateTime? lastDate,
  DateTime? currentDate,
  CalendarDatePicker2Mode? calendarViewMode,
  this.weekdayLabels,
  this.weekdayLabelTextStyle,
  this.weekdayLabelBuilder,
  this.firstDayOfWeek,
  this.controlsHeight,
  this.lastMonthIcon,
  this.hideLastMonthIcon,
  this.nextMonthIcon,
  this.hideNextMonthIcon,
  this.controlsTextStyle,
  this.animateToDisplayedMonthDate,
  this.semanticsDictionary,
  this.disableVibration,
  this.dayViewController,
  this.dayTextStyle,
  this.selectedDayTextStyle,
  this.selectedDayHighlightColor,
  this.selectedRangeHighlightColor,
  this.disabledDayTextStyle,
  this.todayTextStyle,
  this.yearTextStyle,
  this.selectedYearTextStyle,
  this.disabledYearTextStyle,
  this.monthTextStyle,
  this.selectedMonthTextStyle,
  this.disabledMonthTextStyle,
  this.dayBorderRadius,
  this.yearBorderRadius,
  this.monthBorderRadius,
  this.selectableDayPredicate,
  this.selectableMonthPredicate,
  this.selectableYearPredicate,
  this.dayTextStylePredicate,
  this.dayBuilder,
  this.yearBuilder,
  this.monthBuilder,
  this.monthViewController,
  this.yearViewController,
  this.disableModePicker,
  this.centerAlignModePicker,
  this.customModePickerIcon,
  this.modePickerTextHandler,
  this.modePickerBuilder,
  this.modePickersGap,
  this.selectedRangeDayTextStyle,
  this.rangeBidirectional,
  this.calendarViewScrollPhysics,
  this.daySplashColor,
  this.allowSameValueSelection,
  this.disableMonthPicker,
  this.useAbbrLabelForMonthModePicker,
  this.dayMaxWidth,
  this.hideMonthPickerDividers,
  this.hideYearPickerDividers,
  this.scrollViewTopHeaderTextStyle,
  this.hideScrollViewTopHeader,
  this.hideScrollViewTopHeaderDivider,
  this.hideScrollViewMonthWeekHeader,
  this.scrollViewConstraints,
  this.scrollViewMonthYearBuilder,
  this.scrollViewOnScrolling,
  this.scrollViewController,
  this.dynamicCalendarRows,
  this.dayModeScrollDirection,
  this.selectedRangeHighlightBuilder,
  this.selectedRangeDecorationPredicate,
})  : calendarType = calendarType ?? CalendarDatePicker2Type.single,
      firstDate = DateUtils.dateOnly(firstDate ?? DateTime(1970)),
      lastDate =
          DateUtils.dateOnly(lastDate ?? DateTime(DateTime.now().year + 50)),
      currentDate = currentDate ?? DateUtils.dateOnly(DateTime.now()),
      calendarViewMode = calendarViewMode ?? CalendarDatePicker2Mode.day;