copyWith method
CometChatPollsBubbleStyle
copyWith({
- TextStyle? questionTextStyle,
- TextStyle? voteCountTextStyle,
- TextStyle? pollOptionsTextStyle,
- Color? radioButtonColor,
- Color? pollOptionsBackgroundColor,
- Color? selectedOptionColor,
- Color? unSelectedOptionColor,
- Color? backgroundColor,
- Color? iconColor,
- BoxBorder? border,
- BorderRadiusGeometry? borderRadius,
- Color? progressColor,
- Color? progressBackgroundColor,
- CometChatAvatarStyle? voterAvatarStyle,
- CometChatAvatarStyle? messageBubbleAvatarStyle,
- CometChatDateStyle? messageBubbleDateStyle,
- DecorationImage? messageBubbleBackgroundImage,
- TextStyle? threadedMessageIndicatorTextStyle,
- Color? threadedMessageIndicatorIconColor,
- TextStyle? senderNameTextStyle,
- CometChatMessageReceiptStyle? messageReceiptStyle,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
CometChatPollsBubbleStyle copyWith({
TextStyle? questionTextStyle,
TextStyle? voteCountTextStyle,
TextStyle? pollOptionsTextStyle,
Color? radioButtonColor,
Color? pollOptionsBackgroundColor,
Color? selectedOptionColor,
Color? unSelectedOptionColor,
Color? backgroundColor,
Color? iconColor,
BoxBorder? border,
BorderRadiusGeometry? borderRadius,
Color? progressColor,
Color? progressBackgroundColor,
CometChatAvatarStyle? voterAvatarStyle,
CometChatAvatarStyle? messageBubbleAvatarStyle,
CometChatDateStyle? messageBubbleDateStyle,
DecorationImage? messageBubbleBackgroundImage,
TextStyle? threadedMessageIndicatorTextStyle,
Color? threadedMessageIndicatorIconColor,
TextStyle? senderNameTextStyle,
CometChatMessageReceiptStyle? messageReceiptStyle,
}) {
return CometChatPollsBubbleStyle(
questionTextStyle: questionTextStyle ?? this.questionTextStyle,
voteCountTextStyle: voteCountTextStyle ?? this.voteCountTextStyle,
pollOptionsTextStyle: pollOptionsTextStyle ?? this.pollOptionsTextStyle,
radioButtonColor: radioButtonColor ?? this.radioButtonColor,
pollOptionsBackgroundColor: pollOptionsBackgroundColor ?? this.pollOptionsBackgroundColor,
selectedOptionColor: selectedOptionColor ?? this.selectedOptionColor,
unSelectedOptionColor: unSelectedOptionColor ?? this.unSelectedOptionColor,
backgroundColor: backgroundColor ?? this.backgroundColor,
iconColor: iconColor ?? this.iconColor,
border: border ?? this.border,
borderRadius: borderRadius ?? this.borderRadius,
progressColor: progressColor ?? this.progressColor,
progressBackgroundColor: progressBackgroundColor ?? this.progressBackgroundColor,
voterAvatarStyle: voterAvatarStyle ?? this.voterAvatarStyle,
messageBubbleAvatarStyle: messageBubbleAvatarStyle ?? this.messageBubbleAvatarStyle,
messageBubbleDateStyle: messageBubbleDateStyle ?? this.messageBubbleDateStyle,
messageBubbleBackgroundImage: messageBubbleBackgroundImage ?? this.messageBubbleBackgroundImage,
threadedMessageIndicatorTextStyle: threadedMessageIndicatorTextStyle ?? this.threadedMessageIndicatorTextStyle,
threadedMessageIndicatorIconColor: threadedMessageIndicatorIconColor ?? this.threadedMessageIndicatorIconColor,
senderNameTextStyle: senderNameTextStyle ?? this.senderNameTextStyle,
messageReceiptStyle: messageReceiptStyle ?? this.messageReceiptStyle,
);
}