copyWith method
AIAssistBotStyle
copyWith({
- TextStyle? replyTextStyle,
- TextStyle? loadingTextStyle,
- Color? backgroundColor,
- Color? loadingIconTint,
- TextStyle? emptyTextStyle,
- TextStyle? errorTextStyle,
- Color? errorIconTint,
- Color? emptyIconTint,
- Color? shadowColor,
- Color? background,
- BoxBorder? border,
- double? borderRadius,
- Gradient? gradient,
Copies current AIAssistBotStyle with some changes
Implementation
AIAssistBotStyle copyWith({
TextStyle? replyTextStyle,
TextStyle? loadingTextStyle,
Color? backgroundColor,
Color? loadingIconTint,
TextStyle? emptyTextStyle,
TextStyle? errorTextStyle,
Color? errorIconTint,
Color? emptyIconTint,
Color? shadowColor,
Color? background,
BoxBorder? border,
double? borderRadius,
Gradient? gradient,
}) {
return AIAssistBotStyle(
loadingTextStyle: loadingTextStyle ?? this.loadingTextStyle,
loadingIconTint: loadingIconTint ?? this.loadingIconTint,
emptyTextStyle: emptyTextStyle ?? this.emptyTextStyle,
errorTextStyle: errorTextStyle ?? this.errorTextStyle,
errorIconTint: errorIconTint ?? this.errorIconTint,
emptyIconTint: emptyIconTint ?? this.emptyIconTint,
shadowColor: shadowColor ?? this.shadowColor,
background: background ?? this.background,
border: border ?? this.border,
borderRadius: borderRadius ?? this.borderRadius,
gradient: gradient ?? this.gradient,
);
}