merge method

Merges this MacosTimePickerThemeData with another.

Implementation

MacosTimePickerThemeData merge(MacosTimePickerThemeData? other) {
  if (other == null) return this;
  return copyWith(
    backgroundColor: other.backgroundColor,
    selectedElementColor: other.selectedElementColor,
    selectedElementTextColor: other.selectedElementTextColor,
    caretColor: other.caretColor,
    caretControlsBackgroundColor: other.caretControlsBackgroundColor,
    caretControlsSeparatorColor: other.caretControlsSeparatorColor,
    clockViewBackgroundColor: other.clockViewBackgroundColor,
    hourHandColor: other.hourHandColor,
    minuteHandColor: other.minuteHandColor,
    secondHandColor: other.secondHandColor,
    hourTextColor: other.hourTextColor,
    dayPeriodTextColor: other.dayPeriodTextColor,
    clockViewBorderColor: other.clockViewBorderColor,
    shadowColor: other.shadowColor,
  );
}