copyWith method

MacosTimePickerThemeData copyWith({
  1. Color? backgroundColor,
  2. Color? selectedElementColor,
  3. Color? selectedElementTextColor,
  4. Color? caretColor,
  5. Color? caretControlsBackgroundColor,
  6. Color? caretControlsSeparatorColor,
  7. Color? clockViewBackgroundColor,
  8. Color? hourHandColor,
  9. Color? minuteHandColor,
  10. Color? secondHandColor,
  11. Color? hourTextColor,
  12. Color? dayPeriodTextColor,
  13. Color? clockViewBorderColor,
  14. 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,
  );
}