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