copyWith method
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,
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,
);
}