copyWith method
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? outgoingBubbleContentBackgroundColor,
- Color? incomingBubbleContentBackgroundColor,
- TextStyle? editorTextStyle,
- TextStyle? outgoingContentTextStyle,
- TextStyle? incomingContentTextStyle,
- TextStyle? outgoingPrimaryHeaderTextStyle,
- TextStyle? incomingPrimaryHeaderTextStyle,
- TextStyle? outgoingSecondaryHeaderTextStyle,
- TextStyle? incomingSecondaryHeaderTextStyle,
- ShapeBorder? outgoingBubbleContentShape,
- ShapeBorder? incomingBubbleContentShape,
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? outgoingBubbleContentBackgroundColor,
Color? incomingBubbleContentBackgroundColor,
TextStyle? editorTextStyle,
TextStyle? outgoingContentTextStyle,
TextStyle? incomingContentTextStyle,
TextStyle? outgoingPrimaryHeaderTextStyle,
TextStyle? incomingPrimaryHeaderTextStyle,
TextStyle? outgoingSecondaryHeaderTextStyle,
TextStyle? incomingSecondaryHeaderTextStyle,
ShapeBorder? outgoingBubbleContentShape,
ShapeBorder? incomingBubbleContentShape,
}) {
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,
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,
outgoingBubbleContentShape:
outgoingBubbleContentShape ?? this.outgoingBubbleContentShape,
incomingBubbleContentShape:
incomingBubbleContentShape ?? this.incomingBubbleContentShape,
);
}