copyWith method

SfChatThemeData 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? outgoingAvatarBackgroundColor,
  16. Color? incomingAvatarBackgroundColor,
  17. Color? outgoingBubbleContentBackgroundColor,
  18. Color? incomingBubbleContentBackgroundColor,
  19. TextStyle? editorTextStyle,
  20. TextStyle? outgoingContentTextStyle,
  21. TextStyle? incomingContentTextStyle,
  22. TextStyle? outgoingPrimaryHeaderTextStyle,
  23. TextStyle? incomingPrimaryHeaderTextStyle,
  24. TextStyle? outgoingSecondaryHeaderTextStyle,
  25. TextStyle? incomingSecondaryHeaderTextStyle,
  26. WidgetStateProperty<TextStyle?>? suggestionItemTextStyle,
  27. ShapeBorder? outgoingBubbleContentShape,
  28. ShapeBorder? incomingBubbleContentShape,
  29. Color? suggestionBackgroundColor,
  30. ShapeBorder? suggestionBackgroundShape,
  31. WidgetStateProperty<Color?>? suggestionItemBackgroundColor,
  32. WidgetStateProperty<ShapeBorder?>? suggestionItemShape,
})

Implementation

SfChatThemeData 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? outgoingAvatarBackgroundColor,
  Color? incomingAvatarBackgroundColor,
  Color? outgoingBubbleContentBackgroundColor,
  Color? incomingBubbleContentBackgroundColor,
  TextStyle? editorTextStyle,
  TextStyle? outgoingContentTextStyle,
  TextStyle? incomingContentTextStyle,
  TextStyle? outgoingPrimaryHeaderTextStyle,
  TextStyle? incomingPrimaryHeaderTextStyle,
  TextStyle? outgoingSecondaryHeaderTextStyle,
  TextStyle? incomingSecondaryHeaderTextStyle,
  WidgetStateProperty<TextStyle?>? suggestionItemTextStyle,
  ShapeBorder? outgoingBubbleContentShape,
  ShapeBorder? incomingBubbleContentShape,
  Color? suggestionBackgroundColor,
  ShapeBorder? suggestionBackgroundShape,
  WidgetStateProperty<Color?>? suggestionItemBackgroundColor,
  WidgetStateProperty<ShapeBorder?>? suggestionItemShape,
}) {
  return SfChatThemeData.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,
    outgoingAvatarBackgroundColor:
        outgoingAvatarBackgroundColor ?? this.outgoingAvatarBackgroundColor,
    incomingAvatarBackgroundColor:
        incomingAvatarBackgroundColor ?? this.incomingAvatarBackgroundColor,
    outgoingBubbleContentBackgroundColor:
        outgoingBubbleContentBackgroundColor ??
            this.outgoingBubbleContentBackgroundColor,
    incomingBubbleContentBackgroundColor:
        incomingBubbleContentBackgroundColor ??
            this.incomingBubbleContentBackgroundColor,
    editorTextStyle: editorTextStyle ?? this.editorTextStyle,
    outgoingContentTextStyle:
        outgoingContentTextStyle ?? this.outgoingContentTextStyle,
    incomingContentTextStyle:
        incomingContentTextStyle ?? this.incomingContentTextStyle,
    outgoingPrimaryHeaderTextStyle:
        outgoingPrimaryHeaderTextStyle ?? this.outgoingPrimaryHeaderTextStyle,
    incomingPrimaryHeaderTextStyle:
        incomingPrimaryHeaderTextStyle ?? this.incomingPrimaryHeaderTextStyle,
    outgoingSecondaryHeaderTextStyle: outgoingSecondaryHeaderTextStyle ??
        this.outgoingSecondaryHeaderTextStyle,
    incomingSecondaryHeaderTextStyle: incomingSecondaryHeaderTextStyle ??
        this.incomingSecondaryHeaderTextStyle,
    suggestionItemTextStyle:
        suggestionItemTextStyle ?? this.suggestionItemTextStyle,
    outgoingBubbleContentShape:
        outgoingBubbleContentShape ?? this.outgoingBubbleContentShape,
    incomingBubbleContentShape:
        incomingBubbleContentShape ?? this.incomingBubbleContentShape,
    suggestionBackgroundColor:
        suggestionBackgroundColor ?? this.suggestionBackgroundColor,
    suggestionBackgroundShape:
        suggestionBackgroundShape ?? this.suggestionBackgroundShape,
    suggestionItemBackgroundColor:
        suggestionItemBackgroundColor ?? this.suggestionItemBackgroundColor,
    suggestionItemShape: suggestionItemShape ?? this.suggestionItemShape,
  );
}