copyWith method

  1. @override
CometChatAudioBubbleStyle copyWith({
  1. Color? playIconColor,
  2. Color? backgroundColor,
  3. BoxBorder? border,
  4. BorderRadiusGeometry? borderRadius,
  5. Color? playIconBackgroundColor,
  6. Color? downloadIconColor,
  7. Color? audioBarColor,
  8. CometChatAvatarStyle? messageBubbleAvatarStyle,
  9. CometChatDateStyle? messageBubbleDateStyle,
  10. DecorationImage? messageBubbleBackgroundImage,
  11. TextStyle? threadedMessageIndicatorTextStyle,
  12. Color? threadedMessageIndicatorIconColor,
  13. TextStyle? senderNameTextStyle,
  14. CometChatMessageReceiptStyle? messageReceiptStyle,
  15. Color? durationTextColor,
  16. TextStyle? durationTextStyle,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
CometChatAudioBubbleStyle copyWith({
  Color? playIconColor,
  Color? backgroundColor,
  BoxBorder? border,
  BorderRadiusGeometry? borderRadius,
  Color? playIconBackgroundColor,
  Color? downloadIconColor,
  Color? audioBarColor,
  CometChatAvatarStyle? messageBubbleAvatarStyle,
  CometChatDateStyle? messageBubbleDateStyle,
  DecorationImage? messageBubbleBackgroundImage,
  TextStyle? threadedMessageIndicatorTextStyle,
  Color? threadedMessageIndicatorIconColor,
  TextStyle? senderNameTextStyle,
  CometChatMessageReceiptStyle? messageReceiptStyle,
  Color? durationTextColor,
  TextStyle? durationTextStyle,
}) =>
    CometChatAudioBubbleStyle(
      playIconColor: playIconColor ?? this.playIconColor,
      backgroundColor: backgroundColor ?? this.backgroundColor,
      border: border ?? this.border,
      borderRadius: borderRadius ?? this.borderRadius,
      playIconBackgroundColor:
          playIconBackgroundColor ?? this.playIconBackgroundColor,
      audioBarColor: audioBarColor ?? this.audioBarColor,
      downloadIconColor: downloadIconColor ?? this.downloadIconColor,
      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,
      durationTextColor: durationTextColor ?? this.durationTextColor,
      durationTextStyle: durationTextStyle ?? this.durationTextStyle,
    );