merge method

Merges this MessageInputThemeData with the other

Implementation

MessageInputThemeData merge(MessageInputThemeData? other) {
  if (other == null) return this;
  return copyWith(
    sendAnimationDuration: other.sendAnimationDuration,
    inputBackgroundColor: other.inputBackgroundColor,
    actionButtonColor: other.actionButtonColor,
    actionButtonIdleColor: other.actionButtonIdleColor,
    sendButtonColor: other.sendButtonColor,
    sendButtonIdleColor: other.sendButtonIdleColor,
    inputTextStyle:
        inputTextStyle?.merge(other.inputTextStyle) ?? other.inputTextStyle,
    inputDecoration: inputDecoration?.merge(other.inputDecoration) ??
        other.inputDecoration,
    activeBorderGradient: other.activeBorderGradient,
    idleBorderGradient: other.idleBorderGradient,
    borderRadius: other.borderRadius,
    expandButtonColor: other.expandButtonColor,
  );
}