copyWith method
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,
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,
);