copyWith method

MacosDatePickerThemeData copyWith({
  1. Color? backgroundColor,
  2. Color? selectedElementColor,
  3. Color? selectedElementTextColor,
  4. Color? caretColor,
  5. Color? caretControlsBackgroundColor,
  6. Color? caretControlsSeparatorColor,
  7. Color? monthViewControlsColor,
  8. Color? monthViewHeaderColor,
  9. Color? monthViewSelectedDateColor,
  10. Color? monthViewSelectedDateTextColor,
  11. Color? monthViewCurrentDateColor,
  12. Color? monthViewWeekdayHeaderColor,
  13. Color? monthViewHeaderDividerColor,
  14. Color? monthViewDateColor,
  15. Color? shadowColor,
})

Copies this MacosDatePickerThemeData into another.

Implementation

MacosDatePickerThemeData copyWith({
  Color? backgroundColor,
  Color? selectedElementColor,
  Color? selectedElementTextColor,
  Color? caretColor,
  Color? caretControlsBackgroundColor,
  Color? caretControlsSeparatorColor,
  Color? monthViewControlsColor,
  Color? monthViewHeaderColor,
  Color? monthViewSelectedDateColor,
  Color? monthViewSelectedDateTextColor,
  Color? monthViewCurrentDateColor,
  Color? monthViewWeekdayHeaderColor,
  Color? monthViewHeaderDividerColor,
  Color? monthViewDateColor,
  Color? shadowColor,
}) {
  return MacosDatePickerThemeData(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    selectedElementColor: selectedElementColor ?? this.selectedElementColor,
    selectedElementTextColor:
        selectedElementTextColor ?? this.selectedElementTextColor,
    caretColor: caretColor ?? this.caretColor,
    caretControlsBackgroundColor:
        caretControlsBackgroundColor ?? this.caretControlsBackgroundColor,
    caretControlsSeparatorColor:
        caretControlsSeparatorColor ?? this.caretControlsSeparatorColor,
    monthViewControlsColor:
        monthViewControlsColor ?? this.monthViewControlsColor,
    monthViewHeaderColor: monthViewHeaderColor ?? this.monthViewHeaderColor,
    monthViewSelectedDateColor:
        monthViewSelectedDateColor ?? this.monthViewSelectedDateColor,
    monthViewSelectedDateTextColor:
        monthViewSelectedDateTextColor ?? this.monthViewSelectedDateTextColor,
    monthViewCurrentDateColor:
        monthViewCurrentDateColor ?? this.monthViewCurrentDateColor,
    monthViewWeekdayHeaderColor:
        monthViewWeekdayHeaderColor ?? this.monthViewWeekdayHeaderColor,
    monthViewHeaderDividerColor:
        monthViewHeaderDividerColor ?? this.monthViewHeaderDividerColor,
    monthViewDateColor: monthViewDateColor ?? this.monthViewDateColor,
    shadowColor: shadowColor ?? this.shadowColor,
  );
}