copyWith method
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,
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,
);
}