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