copyWith method
CalendarDatePicker2Config
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,
- Color? selectedDayHighlightColor,
- Color? selectedRangeHighlightColor,
- TextStyle? disabledDayTextStyle,
- TextStyle? todayTextStyle,
- TextStyle? yearTextStyle,
- TextStyle? selectedYearTextStyle,
- TextStyle? selectedRangeDayTextStyle,
- BorderRadius? dayBorderRadius,
- BorderRadius? yearBorderRadius,
- SelectableDayPredicate? selectableDayPredicate,
- CalendarDayTextStylePredicate? dayTextStylePredicate,
- CalendarDayBuilder? dayBuilder,
- CalendarYearBuilder? yearBuilder,
- bool? disableModePicker,
- bool? centerAlignModePicker,
- Widget? customModePickerIcon,
- CalendarModePickerTextHandler? modePickerTextHandler,
- bool? rangeBidirectional,
- bool? deshabilitarFinDeSemana,
- bool? mostrarPrimeroMesActual,
- int? cantidadMesesAMostrar,
Implementation
CalendarDatePicker2Config 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,
Color? selectedDayHighlightColor,
Color? selectedRangeHighlightColor,
TextStyle? disabledDayTextStyle,
TextStyle? todayTextStyle,
TextStyle? yearTextStyle,
TextStyle? selectedYearTextStyle,
TextStyle? selectedRangeDayTextStyle,
BorderRadius? dayBorderRadius,
BorderRadius? yearBorderRadius,
SelectableDayPredicate? selectableDayPredicate,
CalendarDayTextStylePredicate? dayTextStylePredicate,
CalendarDayBuilder? dayBuilder,
CalendarYearBuilder? yearBuilder,
bool? disableModePicker,
bool? centerAlignModePicker,
Widget? customModePickerIcon,
CalendarModePickerTextHandler? modePickerTextHandler,
bool? rangeBidirectional,
bool? deshabilitarFinDeSemana,
bool? mostrarPrimeroMesActual,
int? cantidadMesesAMostrar,
}) {
return CalendarDatePicker2Config(
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,
selectedDayHighlightColor:
selectedDayHighlightColor ?? this.selectedDayHighlightColor,
selectedRangeHighlightColor:
selectedRangeHighlightColor ?? this.selectedRangeHighlightColor,
disabledDayTextStyle: disabledDayTextStyle ?? this.disabledDayTextStyle,
todayTextStyle: todayTextStyle ?? this.todayTextStyle,
yearTextStyle: yearTextStyle ?? this.yearTextStyle,
selectedYearTextStyle:
selectedYearTextStyle ?? this.selectedYearTextStyle,
selectedRangeDayTextStyle:
selectedRangeDayTextStyle ?? this.selectedRangeDayTextStyle,
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,
deshabilitarFinDeSemana:
deshabilitarFinDeSemana ?? this.deshabilitarFinDeSemana,
mostrarPrimeroMesActual:
mostrarPrimeroMesActual ?? this.mostrarPrimeroMesActual,
cantidadMesesAMostrar:
cantidadMesesAMostrar ?? this.cantidadMesesAMostrar,
);
}