SfChatThemeData.raw constructor
SfChatThemeData.raw({
- 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,
Returns a new instance of SfChatThemeData.raw for the given values.
If any of the values are null, the default values will be set.
Implementation
factory SfChatThemeData.raw({
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(
actionButtonForegroundColor: actionButtonForegroundColor,
actionButtonBackgroundColor: actionButtonBackgroundColor,
actionButtonFocusColor: actionButtonFocusColor,
actionButtonHoverColor: actionButtonHoverColor,
actionButtonSplashColor: actionButtonSplashColor,
actionButtonDisabledForegroundColor: actionButtonDisabledForegroundColor,
actionButtonDisabledBackgroundColor: actionButtonDisabledBackgroundColor,
actionButtonElevation: actionButtonElevation ?? 0.0,
actionButtonFocusElevation: actionButtonFocusElevation ?? 0.0,
actionButtonHoverElevation: actionButtonHoverElevation ?? 0.0,
actionButtonDisabledElevation: actionButtonDisabledElevation ?? 0.0,
actionButtonHighlightElevation: actionButtonHighlightElevation ?? 0.0,
actionButtonShape: actionButtonShape,
actionButtonMouseCursor: actionButtonMouseCursor,
outgoingBubbleContentBackgroundColor:
outgoingBubbleContentBackgroundColor,
incomingBubbleContentBackgroundColor:
incomingBubbleContentBackgroundColor,
editorTextStyle: editorTextStyle,
outgoingContentTextStyle: outgoingContentTextStyle,
incomingContentTextStyle: incomingContentTextStyle,
outgoingPrimaryHeaderTextStyle: outgoingPrimaryHeaderTextStyle,
incomingPrimaryHeaderTextStyle: incomingPrimaryHeaderTextStyle,
outgoingSecondaryHeaderTextStyle: outgoingSecondaryHeaderTextStyle,
incomingSecondaryHeaderTextStyle: incomingSecondaryHeaderTextStyle,
outgoingBubbleContentShape: outgoingBubbleContentShape,
incomingBubbleContentShape: incomingBubbleContentShape,
);
}