merge method

Implementation

ZeroTimePickerStyle merge(ZeroTimePickerStyle? other) {
  if (other == null) return this;

  return copyWith(
    backgroundColor: other.backgroundColor,
    dayPeriodBorderSide: other.dayPeriodBorderSide,
    dayPeriodColor: other.dayPeriodColor,
    dayPeriodShape: other.dayPeriodShape,
    dayPeriodTextColor: other.dayPeriodTextColor,
    dayPeriodTextStyle: dayPeriodTextStyle?.merge(other.dayPeriodTextStyle) ??
        other.dayPeriodTextStyle,
    dialBackgroundColor: other.dialBackgroundColor,
    dialHandColor: other.dialHandColor,
    dialTextColor: other.dialTextColor,
    entryModeIconColor: other.entryModeIconColor,
    helpTextStyle:
        helpTextStyle?.merge(other.helpTextStyle) ?? other.helpTextStyle,
    shape: other.shape,
    textfieldStyle:
        textfieldStyle?.merge(other.textfieldStyle) ?? other.textfieldStyle,
    hourMinute: other.hourMinute,
  );
}