CalendarDatePicker2Config constructor

CalendarDatePicker2Config({
  1. CalendarDatePicker2Type? calendarType,
  2. DateTime? firstDate,
  3. DateTime? lastDate,
  4. DateTime? currentDate,
  5. DatePickerMode? calendarViewMode,
  6. List<String>? weekdayLabels,
  7. TextStyle? weekdayLabelTextStyle,
  8. int? firstDayOfWeek,
  9. double? controlsHeight,
  10. Widget? lastMonthIcon,
  11. Widget? nextMonthIcon,
  12. TextStyle? controlsTextStyle,
  13. TextStyle? dayTextStyle,
  14. TextStyle? selectedDayTextStyle,
  15. Color? selectedDayHighlightColor,
  16. Color? selectedRangeHighlightColor,
  17. TextStyle? disabledDayTextStyle,
  18. TextStyle? todayTextStyle,
  19. TextStyle? yearTextStyle,
  20. TextStyle? selectedYearTextStyle,
  21. BorderRadius? dayBorderRadius,
  22. BorderRadius? yearBorderRadius,
  23. SelectableDayPredicate? selectableDayPredicate,
  24. CalendarDayTextStylePredicate? dayTextStylePredicate,
  25. CalendarDayBuilder? dayBuilder,
  26. CalendarYearBuilder? yearBuilder,
  27. bool? disableModePicker,
  28. bool? centerAlignModePicker,
  29. Widget? customModePickerIcon,
  30. CalendarModePickerTextHandler? modePickerTextHandler,
  31. TextStyle? selectedRangeDayTextStyle,
  32. bool rangeBidirectional = false,
  33. bool deshabilitarFinDeSemana = false,
  34. bool mostrarPrimeroMesActual = false,
  35. int cantidadMesesAMostrar = 12,
})

Implementation

CalendarDatePicker2Config({
  CalendarDatePicker2Type? calendarType,
  DateTime? firstDate,
  DateTime? lastDate,
  DateTime? currentDate,
  DatePickerMode? calendarViewMode,
  this.weekdayLabels,
  this.weekdayLabelTextStyle,
  this.firstDayOfWeek,
  this.controlsHeight,
  this.lastMonthIcon,
  this.nextMonthIcon,
  this.controlsTextStyle,
  this.dayTextStyle,
  this.selectedDayTextStyle,
  this.selectedDayHighlightColor,
  this.selectedRangeHighlightColor,
  this.disabledDayTextStyle,
  this.todayTextStyle,
  this.yearTextStyle,
  this.selectedYearTextStyle,
  this.dayBorderRadius,
  this.yearBorderRadius,
  this.selectableDayPredicate,
  this.dayTextStylePredicate,
  this.dayBuilder,
  this.yearBuilder,
  this.disableModePicker,
  this.centerAlignModePicker,
  this.customModePickerIcon,
  this.modePickerTextHandler,
  this.selectedRangeDayTextStyle,
  this.rangeBidirectional = false,
  this.deshabilitarFinDeSemana = false,
  this.mostrarPrimeroMesActual = false,
  this.cantidadMesesAMostrar = 12,
})  : 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 ?? DatePickerMode.day;