copyWith method
MessageOptions
copyWith({
- TextStyle? textStyle,
- EdgeInsets? padding,
- EdgeInsets? containerMargin,
- BoxDecoration? decoration,
- BoxDecoration? containerDecoration,
- Color? containerColor,
- bool? showTime,
- TextStyle? timeTextStyle,
- String timeFormat()?,
- double? timestampSpacing,
- int? maxReactions,
- double? reactionSize,
- bool? enableQuickReply,
- BubbleStyle? bubbleStyle,
- bool? showUserName,
- TextStyle? userNameStyle,
- bool? showCopyButton,
- void onCopy()?,
- Color? userTextColor,
- Color? aiTextColor,
- void onMediaTap()?,
- bool? enableImageTaps,
- void onImageTap()?,
- Widget customBubbleBuilder()?,
Implementation
MessageOptions copyWith({
TextStyle? textStyle,
EdgeInsets? padding,
EdgeInsets? containerMargin,
BoxDecoration? decoration,
BoxDecoration? containerDecoration,
Color? containerColor,
bool? showTime,
TextStyle? timeTextStyle,
String Function(DateTime)? timeFormat,
double? timestampSpacing,
int? maxReactions,
double? reactionSize,
bool? enableQuickReply,
BubbleStyle? bubbleStyle,
bool? showUserName,
TextStyle? userNameStyle,
bool? showCopyButton,
void Function(String)? onCopy,
Color? userTextColor,
Color? aiTextColor,
void Function(ChatMedia)? onMediaTap,
bool? enableImageTaps,
void Function(String url, String? title, String? alt)? onImageTap,
Widget Function(BuildContext, ChatMessage, bool)? customBubbleBuilder,
}) =>
MessageOptions(
textStyle: textStyle ?? this.textStyle,
padding: padding ?? this.padding,
containerMargin: containerMargin ?? this.containerMargin,
decoration: decoration ?? this.decoration,
containerDecoration: containerDecoration ?? this.containerDecoration,
containerColor: containerColor ?? this.containerColor,
showTime: showTime ?? this.showTime,
timeTextStyle: timeTextStyle ?? this.timeTextStyle,
timeFormat: timeFormat ?? this.timeFormat,
timestampSpacing: timestampSpacing ?? this.timestampSpacing,
maxReactions: maxReactions ?? this.maxReactions,
reactionSize: reactionSize ?? this.reactionSize,
enableQuickReply: enableQuickReply ?? this.enableQuickReply,
bubbleStyle: bubbleStyle ?? this.bubbleStyle,
showUserName: showUserName ?? this.showUserName,
userNameStyle: userNameStyle ?? this.userNameStyle,
showCopyButton: showCopyButton ?? this.showCopyButton,
onCopy: onCopy ?? this.onCopy,
userTextColor: userTextColor ?? this.userTextColor,
aiTextColor: aiTextColor ?? this.aiTextColor,
onMediaTap: onMediaTap ?? this.onMediaTap,
enableImageTaps: enableImageTaps ?? this.enableImageTaps,
customBubbleBuilder: customBubbleBuilder ?? this.customBubbleBuilder,
);