copyWith method

  1. @override
CometChatPollsBubbleStyle copyWith({
  1. TextStyle? questionTextStyle,
  2. TextStyle? voteCountTextStyle,
  3. TextStyle? pollOptionsTextStyle,
  4. Color? radioButtonColor,
  5. Color? pollOptionsBackgroundColor,
  6. Color? selectedOptionColor,
  7. Color? unSelectedOptionColor,
  8. Color? backgroundColor,
  9. Color? iconColor,
  10. BoxBorder? border,
  11. BorderRadiusGeometry? borderRadius,
  12. Color? progressColor,
  13. Color? progressBackgroundColor,
  14. CometChatAvatarStyle? voterAvatarStyle,
  15. CometChatAvatarStyle? messageBubbleAvatarStyle,
  16. CometChatDateStyle? messageBubbleDateStyle,
  17. DecorationImage? messageBubbleBackgroundImage,
  18. TextStyle? threadedMessageIndicatorTextStyle,
  19. Color? threadedMessageIndicatorIconColor,
  20. TextStyle? senderNameTextStyle,
  21. 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,
  );
}