copyWith method

StreamMessageInputThemeData copyWith({
  1. Duration? sendAnimationDuration,
  2. Color? inputBackgroundColor,
  3. Color? actionButtonColor,
  4. Color? sendButtonColor,
  5. Color? actionButtonIdleColor,
  6. Color? linkHighlightColor,
  7. Color? sendButtonIdleColor,
  8. Color? expandButtonColor,
  9. TextStyle? inputTextStyle,
  10. InputDecoration? inputDecoration,
  11. Gradient? activeBorderGradient,
  12. Gradient? idleBorderGradient,
  13. BorderRadius? borderRadius,
  14. bool? enableSafeArea,
  15. double? elevation,
  16. BoxShadow? shadow,
})

Returns a new StreamMessageInputThemeData replacing some of its properties

Implementation

StreamMessageInputThemeData copyWith({
  Duration? sendAnimationDuration,
  Color? inputBackgroundColor,
  Color? actionButtonColor,
  Color? sendButtonColor,
  Color? actionButtonIdleColor,
  Color? linkHighlightColor,
  Color? sendButtonIdleColor,
  Color? expandButtonColor,
  TextStyle? inputTextStyle,
  InputDecoration? inputDecoration,
  Gradient? activeBorderGradient,
  Gradient? idleBorderGradient,
  BorderRadius? borderRadius,
  bool? enableSafeArea,
  double? elevation,
  BoxShadow? shadow,
}) {
  return StreamMessageInputThemeData(
    sendAnimationDuration:
        sendAnimationDuration ?? this.sendAnimationDuration,
    inputBackgroundColor: inputBackgroundColor ?? this.inputBackgroundColor,
    actionButtonColor: actionButtonColor ?? this.actionButtonColor,
    sendButtonColor: sendButtonColor ?? this.sendButtonColor,
    actionButtonIdleColor:
        actionButtonIdleColor ?? this.actionButtonIdleColor,
    linkHighlightColor: linkHighlightColor ?? this.linkHighlightColor,
    expandButtonColor: expandButtonColor ?? this.expandButtonColor,
    inputTextStyle: inputTextStyle ?? this.inputTextStyle,
    sendButtonIdleColor: sendButtonIdleColor ?? this.sendButtonIdleColor,
    inputDecoration: inputDecoration ?? this.inputDecoration,
    activeBorderGradient: activeBorderGradient ?? this.activeBorderGradient,
    idleBorderGradient: idleBorderGradient ?? this.idleBorderGradient,
    borderRadius: borderRadius ?? this.borderRadius,
    enableSafeArea: enableSafeArea ?? this.enableSafeArea,
    elevation: elevation ?? this.elevation,
    shadow: shadow ?? this.shadow,
  );
}