copyWith method

SfAIAssistViewThemeData copyWith({
  1. Color? actionButtonForegroundColor,
  2. Color? actionButtonBackgroundColor,
  3. Color? actionButtonFocusColor,
  4. Color? actionButtonHoverColor,
  5. Color? actionButtonSplashColor,
  6. Color? actionButtonDisabledForegroundColor,
  7. Color? actionButtonDisabledBackgroundColor,
  8. double? actionButtonElevation,
  9. double? actionButtonFocusElevation,
  10. double? actionButtonHoverElevation,
  11. double? actionButtonDisabledElevation,
  12. double? actionButtonHighlightElevation,
  13. ShapeBorder? actionButtonShape,
  14. MouseCursor? actionButtonMouseCursor,
  15. Color? requestAvatarBackgroundColor,
  16. Color? responseAvatarBackgroundColor,
  17. Color? requestBubbleContentBackgroundColor,
  18. Color? responseBubbleContentBackgroundColor,
  19. TextStyle? editorTextStyle,
  20. TextStyle? requestContentTextStyle,
  21. TextStyle? responseContentTextStyle,
  22. TextStyle? requestPrimaryHeaderTextStyle,
  23. TextStyle? responsePrimaryHeaderTextStyle,
  24. TextStyle? requestSecondaryHeaderTextStyle,
  25. TextStyle? responseSecondaryHeaderTextStyle,
  26. WidgetStateProperty<TextStyle?>? suggestionItemTextStyle,
  27. ShapeBorder? requestBubbleContentShape,
  28. ShapeBorder? responseBubbleContentShape,
  29. Color? suggestionBackgroundColor,
  30. ShapeBorder? suggestionBackgroundShape,
  31. WidgetStateProperty<Color?>? suggestionItemBackgroundColor,
  32. WidgetStateProperty<ShapeBorder?>? suggestionItemShape,
  33. Color? responseToolbarBackgroundColor,
  34. ShapeBorder? responseToolbarBackgroundShape,
  35. WidgetStateProperty<Color?>? responseToolbarItemBackgroundColor,
  36. WidgetStateProperty<ShapeBorder?>? responseToolbarItemShape,
})

Implementation

SfAIAssistViewThemeData copyWith({
  Color? actionButtonForegroundColor,
  Color? actionButtonBackgroundColor,
  Color? actionButtonFocusColor,
  Color? actionButtonHoverColor,
  Color? actionButtonSplashColor,
  Color? actionButtonDisabledForegroundColor,
  Color? actionButtonDisabledBackgroundColor,
  double? actionButtonElevation,
  double? actionButtonFocusElevation,
  double? actionButtonHoverElevation,
  double? actionButtonDisabledElevation,
  double? actionButtonHighlightElevation,
  ShapeBorder? actionButtonShape,
  MouseCursor? actionButtonMouseCursor,
  Color? requestAvatarBackgroundColor,
  Color? responseAvatarBackgroundColor,
  Color? requestBubbleContentBackgroundColor,
  Color? responseBubbleContentBackgroundColor,
  TextStyle? editorTextStyle,
  TextStyle? requestContentTextStyle,
  TextStyle? responseContentTextStyle,
  TextStyle? requestPrimaryHeaderTextStyle,
  TextStyle? responsePrimaryHeaderTextStyle,
  TextStyle? requestSecondaryHeaderTextStyle,
  TextStyle? responseSecondaryHeaderTextStyle,
  WidgetStateProperty<TextStyle?>? suggestionItemTextStyle,
  ShapeBorder? requestBubbleContentShape,
  ShapeBorder? responseBubbleContentShape,
  Color? suggestionBackgroundColor,
  ShapeBorder? suggestionBackgroundShape,
  WidgetStateProperty<Color?>? suggestionItemBackgroundColor,
  WidgetStateProperty<ShapeBorder?>? suggestionItemShape,
  Color? responseToolbarBackgroundColor,
  ShapeBorder? responseToolbarBackgroundShape,
  WidgetStateProperty<Color?>? responseToolbarItemBackgroundColor,
  WidgetStateProperty<ShapeBorder?>? responseToolbarItemShape,
}) {
  return SfAIAssistViewThemeData.raw(
    actionButtonForegroundColor:
        actionButtonForegroundColor ?? this.actionButtonForegroundColor,
    actionButtonBackgroundColor:
        actionButtonBackgroundColor ?? this.actionButtonBackgroundColor,
    actionButtonFocusColor:
        actionButtonFocusColor ?? this.actionButtonFocusColor,
    actionButtonHoverColor:
        actionButtonHoverColor ?? this.actionButtonHoverColor,
    actionButtonSplashColor:
        actionButtonSplashColor ?? this.actionButtonSplashColor,
    actionButtonDisabledForegroundColor:
        actionButtonDisabledForegroundColor ??
            this.actionButtonDisabledForegroundColor,
    actionButtonDisabledBackgroundColor:
        actionButtonDisabledBackgroundColor ??
            this.actionButtonDisabledBackgroundColor,
    actionButtonElevation:
        actionButtonElevation ?? this.actionButtonElevation,
    actionButtonFocusElevation:
        actionButtonFocusElevation ?? this.actionButtonFocusElevation,
    actionButtonHoverElevation:
        actionButtonHoverElevation ?? this.actionButtonHoverElevation,
    actionButtonDisabledElevation:
        actionButtonDisabledElevation ?? this.actionButtonDisabledElevation,
    actionButtonHighlightElevation:
        actionButtonHighlightElevation ?? this.actionButtonHighlightElevation,
    actionButtonShape: actionButtonShape ?? this.actionButtonShape,
    actionButtonMouseCursor:
        actionButtonMouseCursor ?? this.actionButtonMouseCursor,
    requestAvatarBackgroundColor:
        requestAvatarBackgroundColor ?? this.requestAvatarBackgroundColor,
    responseAvatarBackgroundColor:
        responseAvatarBackgroundColor ?? this.responseAvatarBackgroundColor,
    requestBubbleContentBackgroundColor:
        requestBubbleContentBackgroundColor ??
            this.requestBubbleContentBackgroundColor,
    responseBubbleContentBackgroundColor:
        responseBubbleContentBackgroundColor ??
            this.responseBubbleContentBackgroundColor,
    editorTextStyle: editorTextStyle ?? this.editorTextStyle,
    requestContentTextStyle:
        requestContentTextStyle ?? this.requestContentTextStyle,
    responseContentTextStyle:
        responseContentTextStyle ?? this.responseContentTextStyle,
    requestPrimaryHeaderTextStyle:
        requestPrimaryHeaderTextStyle ?? this.requestPrimaryHeaderTextStyle,
    responsePrimaryHeaderTextStyle:
        responsePrimaryHeaderTextStyle ?? this.responsePrimaryHeaderTextStyle,
    requestSecondaryHeaderTextStyle: requestSecondaryHeaderTextStyle ??
        this.requestSecondaryHeaderTextStyle,
    responseSecondaryHeaderTextStyle: responseSecondaryHeaderTextStyle ??
        this.responseSecondaryHeaderTextStyle,
    suggestionItemTextStyle:
        suggestionItemTextStyle ?? this.suggestionItemTextStyle,
    requestBubbleContentShape:
        requestBubbleContentShape ?? this.requestBubbleContentShape,
    responseBubbleContentShape:
        responseBubbleContentShape ?? this.responseBubbleContentShape,
    suggestionBackgroundColor:
        suggestionBackgroundColor ?? this.suggestionBackgroundColor,
    suggestionBackgroundShape:
        suggestionBackgroundShape ?? this.suggestionBackgroundShape,
    suggestionItemBackgroundColor:
        suggestionItemBackgroundColor ?? this.suggestionItemBackgroundColor,
    suggestionItemShape: suggestionItemShape ?? this.suggestionItemShape,
    responseToolbarBackgroundColor:
        responseToolbarBackgroundColor ?? this.responseToolbarBackgroundColor,
    responseToolbarBackgroundShape:
        responseToolbarBackgroundShape ?? this.responseToolbarBackgroundShape,
    responseToolbarItemBackgroundColor: responseToolbarItemBackgroundColor ??
        this.responseToolbarItemBackgroundColor,
    responseToolbarItemShape:
        responseToolbarItemShape ?? this.responseToolbarItemShape,
  );
}