copyWith method

AIConversationSummaryStyle copyWith({
  1. TextStyle? replyTextStyle,
  2. TextStyle? loadingTextStyle,
  3. Color? backgroundColor,
  4. Color? loadingIconTint,
  5. TextStyle? emptyTextStyle,
  6. TextStyle? errorTextStyle,
  7. Color? errorIconTint,
  8. Color? emptyIconTint,
  9. Color? shadowColor,
  10. Color? background,
  11. BoxBorder? border,
  12. double? borderRadius,
  13. Gradient? gradient,
})

Copies current AIConversationSummaryStyle with some changes

Implementation

AIConversationSummaryStyle 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 AIConversationSummaryStyle(
    loadingTextStyle: loadingTextStyle ?? this.loadingTextStyle,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    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,
  );
}