merge method

Merges this theme with another theme.

Implementation

CustomInputTheme merge(CustomInputTheme? other) {
  if (other == null) return this;
  return copyWith(
    style: other.style,
    placeholderStyle: other.placeholderStyle,
    cursorColor: other.cursorColor,
    cursorWidth: other.cursorWidth,
    cursorHeight: other.cursorHeight,
    cursorRadius: other.cursorRadius,
    cursorOpacityAnimates: other.cursorOpacityAnimates,
    padding: other.padding,
    inputPadding: other.inputPadding,
    alignment: other.alignment,
    placeholderAlignment: other.placeholderAlignment,
    mainAxisAlignment: other.mainAxisAlignment,
    crossAxisAlignment: other.crossAxisAlignment,
    gap: other.gap,
    verticalGap: other.verticalGap,
    constraints: other.constraints,
    scrollbarPadding: other.scrollbarPadding,
    decoration: other.decoration,
    focusedDecoration: other.focusedDecoration,
    disabledDecoration: other.disabledDecoration,
  );
}