copyWith method

  1. @override
CalendarDatePicker2WithActionButtonsConfig copyWith({
  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. TextStyle? selectedRangeDayTextStyle,
  16. Color? selectedDayHighlightColor,
  17. Color? selectedRangeHighlightColor,
  18. TextStyle? disabledDayTextStyle,
  19. TextStyle? todayTextStyle,
  20. TextStyle? yearTextStyle,
  21. TextStyle? selectedYearTextStyle,
  22. BorderRadius? dayBorderRadius,
  23. BorderRadius? yearBorderRadius,
  24. SelectableDayPredicate? selectableDayPredicate,
  25. CalendarDayTextStylePredicate? dayTextStylePredicate,
  26. CalendarDayBuilder? dayBuilder,
  27. CalendarYearBuilder? yearBuilder,
  28. bool? disableModePicker,
  29. bool? centerAlignModePicker,
  30. Widget? customModePickerIcon,
  31. CalendarModePickerTextHandler? modePickerTextHandler,
  32. double? gapBetweenCalendarAndButtons,
  33. TextStyle? cancelButtonTextStyle,
  34. Widget? cancelButton,
  35. TextStyle? okButtonTextStyle,
  36. Widget? okButton,
  37. bool? openedFromDialog,
  38. bool? closeDialogOnCancelTapped,
  39. bool? closeDialogOnOkTapped,
  40. EdgeInsets? buttonPadding,
  41. bool? rangeBidirectional,
  42. bool? deshabilitarFinDeSemana,
  43. bool? mostrarPrimeroMesActual,
  44. int? cantidadMesesAMostrar,
})
override

Implementation

@override
CalendarDatePicker2WithActionButtonsConfig copyWith({
  CalendarDatePicker2Type? calendarType,
  DateTime? firstDate,
  DateTime? lastDate,
  DateTime? currentDate,
  DatePickerMode? calendarViewMode,
  List<String>? weekdayLabels,
  TextStyle? weekdayLabelTextStyle,
  int? firstDayOfWeek,
  double? controlsHeight,
  Widget? lastMonthIcon,
  Widget? nextMonthIcon,
  TextStyle? controlsTextStyle,
  TextStyle? dayTextStyle,
  TextStyle? selectedDayTextStyle,
  TextStyle? selectedRangeDayTextStyle,
  Color? selectedDayHighlightColor,
  Color? selectedRangeHighlightColor,
  TextStyle? disabledDayTextStyle,
  TextStyle? todayTextStyle,
  TextStyle? yearTextStyle,
  TextStyle? selectedYearTextStyle,
  BorderRadius? dayBorderRadius,
  BorderRadius? yearBorderRadius,
  SelectableDayPredicate? selectableDayPredicate,
  CalendarDayTextStylePredicate? dayTextStylePredicate,
  CalendarDayBuilder? dayBuilder,
  CalendarYearBuilder? yearBuilder,
  bool? disableModePicker,
  bool? centerAlignModePicker,
  Widget? customModePickerIcon,
  CalendarModePickerTextHandler? modePickerTextHandler,
  double? gapBetweenCalendarAndButtons,
  TextStyle? cancelButtonTextStyle,
  Widget? cancelButton,
  TextStyle? okButtonTextStyle,
  Widget? okButton,
  bool? openedFromDialog,
  bool? closeDialogOnCancelTapped,
  bool? closeDialogOnOkTapped,
  EdgeInsets? buttonPadding,
  bool? rangeBidirectional,
  bool? deshabilitarFinDeSemana,
  bool? mostrarPrimeroMesActual,
  int? cantidadMesesAMostrar,
}) {
  return CalendarDatePicker2WithActionButtonsConfig(
    calendarType: calendarType ?? this.calendarType,
    firstDate: DateUtils.dateOnly(firstDate ?? this.firstDate),
    lastDate: DateUtils.dateOnly(lastDate ?? this.lastDate),
    currentDate: currentDate ?? this.currentDate,
    calendarViewMode: calendarViewMode ?? this.calendarViewMode,
    weekdayLabels: weekdayLabels ?? this.weekdayLabels,
    weekdayLabelTextStyle:
        weekdayLabelTextStyle ?? this.weekdayLabelTextStyle,
    firstDayOfWeek: firstDayOfWeek ?? this.firstDayOfWeek,
    controlsHeight: controlsHeight ?? this.controlsHeight,
    lastMonthIcon: lastMonthIcon ?? this.lastMonthIcon,
    nextMonthIcon: nextMonthIcon ?? this.nextMonthIcon,
    controlsTextStyle: controlsTextStyle ?? this.controlsTextStyle,
    dayTextStyle: dayTextStyle ?? this.dayTextStyle,
    selectedDayTextStyle: selectedDayTextStyle ?? this.selectedDayTextStyle,
    selectedRangeDayTextStyle:
        selectedRangeDayTextStyle ?? this.selectedRangeDayTextStyle,
    selectedDayHighlightColor:
        selectedDayHighlightColor ?? this.selectedDayHighlightColor,
    selectedRangeHighlightColor:
        selectedRangeHighlightColor ?? this.selectedRangeHighlightColor,
    disabledDayTextStyle: disabledDayTextStyle ?? this.disabledDayTextStyle,
    todayTextStyle: todayTextStyle ?? this.todayTextStyle,
    yearTextStyle: yearTextStyle ?? this.yearTextStyle,
    selectedYearTextStyle:
        selectedYearTextStyle ?? this.selectedYearTextStyle,
    dayBorderRadius: dayBorderRadius ?? this.dayBorderRadius,
    yearBorderRadius: yearBorderRadius ?? this.yearBorderRadius,
    selectableDayPredicate:
        selectableDayPredicate ?? this.selectableDayPredicate,
    dayTextStylePredicate:
        dayTextStylePredicate ?? this.dayTextStylePredicate,
    dayBuilder: dayBuilder ?? this.dayBuilder,
    yearBuilder: yearBuilder ?? this.yearBuilder,
    disableModePicker: disableModePicker ?? this.disableModePicker,
    centerAlignModePicker:
        centerAlignModePicker ?? this.centerAlignModePicker,
    customModePickerIcon: customModePickerIcon ?? this.customModePickerIcon,
    modePickerTextHandler:
        modePickerTextHandler ?? this.modePickerTextHandler,
    rangeBidirectional: rangeBidirectional ?? this.rangeBidirectional,
    gapBetweenCalendarAndButtons:
        gapBetweenCalendarAndButtons ?? this.gapBetweenCalendarAndButtons,
    cancelButtonTextStyle:
        cancelButtonTextStyle ?? this.cancelButtonTextStyle,
    cancelButton: cancelButton ?? this.cancelButton,
    okButtonTextStyle: okButtonTextStyle ?? this.okButtonTextStyle,
    okButton: okButton ?? this.okButton,
    openedFromDialog: openedFromDialog ?? this.openedFromDialog,
    closeDialogOnCancelTapped:
        closeDialogOnCancelTapped ?? this.closeDialogOnCancelTapped,
    closeDialogOnOkTapped:
        closeDialogOnOkTapped ?? this.closeDialogOnOkTapped,
    buttonPadding: buttonPadding ?? this.buttonPadding,
  );
}