copyWith method
MacosTimePickerThemeData
copyWith({
- Color? backgroundColor,
- Color? selectedElementColor,
- Color? selectedElementTextColor,
- Color? caretColor,
- Color? caretControlsBackgroundColor,
- Color? caretControlsSeparatorColor,
- Color? clockViewBackgroundColor,
- Color? hourHandColor,
- Color? minuteHandColor,
- Color? secondHandColor,
- Color? hourTextColor,
- Color? dayPeriodTextColor,
- Color? clockViewBorderColor,
- Color? shadowColor,
Copies this MacosTimePickerThemeData into another.
Implementation
MacosTimePickerThemeData copyWith({
Color? backgroundColor,
Color? selectedElementColor,
Color? selectedElementTextColor,
Color? caretColor,
Color? caretControlsBackgroundColor,
Color? caretControlsSeparatorColor,
Color? clockViewBackgroundColor,
Color? hourHandColor,
Color? minuteHandColor,
Color? secondHandColor,
Color? hourTextColor,
Color? dayPeriodTextColor,
Color? clockViewBorderColor,
Color? shadowColor,
}) {
return MacosTimePickerThemeData(
backgroundColor: backgroundColor ?? this.backgroundColor,
selectedElementColor: selectedElementColor ?? this.selectedElementColor,
selectedElementTextColor:
selectedElementTextColor ?? this.selectedElementTextColor,
caretColor: caretColor ?? this.caretColor,
caretControlsBackgroundColor:
caretControlsBackgroundColor ?? this.caretControlsBackgroundColor,
caretControlsSeparatorColor:
caretControlsSeparatorColor ?? this.caretControlsSeparatorColor,
clockViewBackgroundColor:
clockViewBackgroundColor ?? this.clockViewBackgroundColor,
hourHandColor: hourHandColor ?? this.hourHandColor,
minuteHandColor: minuteHandColor ?? this.minuteHandColor,
secondHandColor: secondHandColor ?? this.secondHandColor,
hourTextColor: hourTextColor ?? this.hourTextColor,
dayPeriodTextColor: dayPeriodTextColor ?? this.dayPeriodTextColor,
clockViewBorderColor: clockViewBorderColor ?? this.clockViewBorderColor,
shadowColor: shadowColor ?? this.shadowColor,
);
}