copyWith method
StreamMessageWidget
copyWith({
- Key? key,
- void onMentionTap()?,
- void onThreadTap()?,
- void onReplyTap()?,
- Future<
void> onConfirmDeleteTap()?, - Widget editMessageInputBuilder()?,
- Widget textBuilder()?,
- Widget quotedMessageBuilder()?,
- BottomRowBuilderWithDefaultWidget? bottomRowBuilderWithDefaultWidget,
- void onMessageActions()?,
- Message? message,
- StreamMessageThemeData? messageTheme,
- bool? reverse,
- ShapeBorder? shape,
- ShapeBorder? attachmentShape,
- BorderSide? borderSide,
- BorderRadiusGeometry? borderRadiusGeometry,
- EdgeInsetsGeometry? padding,
- EdgeInsets? textPadding,
- EdgeInsetsGeometry? attachmentPadding,
- double? widthFactor,
- DisplayWidget? showUserAvatar,
- bool? showSendingIndicator,
- bool? showReactions,
- bool? allRead,
- bool? showThreadReplyIndicator,
- bool? showInChannelIndicator,
- void onUserAvatarTap()?,
- void onLinkTap()?,
- bool? showReactionBrowser,
- bool? showReactionPicker,
- List<
Read> ? readList, - ShowMessageCallback? onShowMessage,
- bool? showUsername,
- bool? showTimestamp,
- bool? showReplyMessage,
- bool? showThreadReplyMessage,
- bool? showEditMessage,
- bool? showCopyMessage,
- bool? showDeleteMessage,
- bool? showResendMessage,
- bool? showFlagButton,
- bool? showPinButton,
- bool? showPinHighlight,
- bool? showMarkUnreadMessage,
- List<
StreamAttachmentWidgetBuilder> ? attachmentBuilders, - bool? translateUserAvatar,
- OnQuotedMessageTap? onQuotedMessageTap,
- void onMessageTap()?,
- OnReactionsTap? onReactionsTap,
- OnReactionsHover? onReactionsHover,
- List<
StreamMessageAction> ? customActions, - void onAttachmentTap(
- Message message,
- Attachment attachment
- Widget userAvatarBuilder()?,
- Size? imageAttachmentThumbnailSize,
- String? imageAttachmentThumbnailResizeType,
- String? imageAttachmentThumbnailCropType,
- AttachmentActionsBuilder? attachmentActionsModalBuilder,
Creates a copy of BottomRow
with specified attributes
overridden.
Implementation
StreamMessageWidget copyWith({
Key? key,
void Function(User)? onMentionTap,
void Function(Message)? onThreadTap,
void Function(Message)? onReplyTap,
Future<void> Function(Message)? onConfirmDeleteTap,
Widget Function(BuildContext, Message)? editMessageInputBuilder,
Widget Function(BuildContext, Message)? textBuilder,
Widget Function(BuildContext, Message)? quotedMessageBuilder,
BottomRowBuilderWithDefaultWidget? bottomRowBuilderWithDefaultWidget,
void Function(BuildContext, Message)? onMessageActions,
Message? message,
StreamMessageThemeData? messageTheme,
bool? reverse,
ShapeBorder? shape,
ShapeBorder? attachmentShape,
BorderSide? borderSide,
BorderRadiusGeometry? borderRadiusGeometry,
EdgeInsetsGeometry? padding,
EdgeInsets? textPadding,
EdgeInsetsGeometry? attachmentPadding,
double? widthFactor,
DisplayWidget? showUserAvatar,
bool? showSendingIndicator,
bool? showReactions,
bool? allRead,
bool? showThreadReplyIndicator,
bool? showInChannelIndicator,
void Function(User)? onUserAvatarTap,
void Function(String)? onLinkTap,
bool? showReactionBrowser,
bool? showReactionPicker,
List<Read>? readList,
ShowMessageCallback? onShowMessage,
bool? showUsername,
bool? showTimestamp,
bool? showReplyMessage,
bool? showThreadReplyMessage,
bool? showEditMessage,
bool? showCopyMessage,
bool? showDeleteMessage,
bool? showResendMessage,
bool? showFlagButton,
bool? showPinButton,
bool? showPinHighlight,
bool? showMarkUnreadMessage,
List<StreamAttachmentWidgetBuilder>? attachmentBuilders,
bool? translateUserAvatar,
OnQuotedMessageTap? onQuotedMessageTap,
void Function(Message)? onMessageTap,
OnReactionsTap? onReactionsTap,
OnReactionsHover? onReactionsHover,
List<StreamMessageAction>? customActions,
void Function(Message message, Attachment attachment)? onAttachmentTap,
Widget Function(BuildContext, User)? userAvatarBuilder,
Size? imageAttachmentThumbnailSize,
String? imageAttachmentThumbnailResizeType,
String? imageAttachmentThumbnailCropType,
AttachmentActionsBuilder? attachmentActionsModalBuilder,
}) {
return StreamMessageWidget(
key: key ?? this.key,
onMentionTap: onMentionTap ?? this.onMentionTap,
onThreadTap: onThreadTap ?? this.onThreadTap,
onReplyTap: onReplyTap ?? this.onReplyTap,
onConfirmDeleteTap: onConfirmDeleteTap ?? this.onConfirmDeleteTap,
editMessageInputBuilder:
editMessageInputBuilder ?? this.editMessageInputBuilder,
textBuilder: textBuilder ?? this.textBuilder,
quotedMessageBuilder: quotedMessageBuilder ?? this.quotedMessageBuilder,
bottomRowBuilderWithDefaultWidget: bottomRowBuilderWithDefaultWidget ??
this.bottomRowBuilderWithDefaultWidget,
onMessageActions: onMessageActions ?? this.onMessageActions,
message: message ?? this.message,
messageTheme: messageTheme ?? this.messageTheme,
reverse: reverse ?? this.reverse,
shape: shape ?? this.shape,
attachmentShape: attachmentShape ?? this.attachmentShape,
borderSide: borderSide ?? this.borderSide,
borderRadiusGeometry: borderRadiusGeometry ?? this.borderRadiusGeometry,
padding: padding ?? this.padding,
textPadding: textPadding ?? this.textPadding,
attachmentPadding: attachmentPadding ?? this.attachmentPadding,
widthFactor: widthFactor ?? this.widthFactor,
showUserAvatar: showUserAvatar ?? this.showUserAvatar,
showSendingIndicator: showSendingIndicator ?? this.showSendingIndicator,
showReactions: showReactions ?? this.showReactions,
showThreadReplyIndicator:
showThreadReplyIndicator ?? this.showThreadReplyIndicator,
showInChannelIndicator:
showInChannelIndicator ?? this.showInChannelIndicator,
onUserAvatarTap: onUserAvatarTap ?? this.onUserAvatarTap,
onLinkTap: onLinkTap ?? this.onLinkTap,
showReactionPicker: showReactionPicker ?? this.showReactionPicker,
onShowMessage: onShowMessage ?? this.onShowMessage,
showUsername: showUsername ?? this.showUsername,
showTimestamp: showTimestamp ?? this.showTimestamp,
showReplyMessage: showReplyMessage ?? this.showReplyMessage,
showThreadReplyMessage:
showThreadReplyMessage ?? this.showThreadReplyMessage,
showEditMessage: showEditMessage ?? this.showEditMessage,
showCopyMessage: showCopyMessage ?? this.showCopyMessage,
showDeleteMessage: showDeleteMessage ?? this.showDeleteMessage,
showResendMessage: showResendMessage ?? this.showResendMessage,
showFlagButton: showFlagButton ?? this.showFlagButton,
showPinButton: showPinButton ?? this.showPinButton,
showPinHighlight: showPinHighlight ?? this.showPinHighlight,
showMarkUnreadMessage:
showMarkUnreadMessage ?? this.showMarkUnreadMessage,
attachmentBuilders: attachmentBuilders ?? this.attachmentBuilders,
translateUserAvatar: translateUserAvatar ?? this.translateUserAvatar,
onQuotedMessageTap: onQuotedMessageTap ?? this.onQuotedMessageTap,
onMessageTap: onMessageTap ?? this.onMessageTap,
onReactionsTap: onReactionsTap ?? this.onReactionsTap,
onReactionsHover: onReactionsHover ?? this.onReactionsHover,
customActions: customActions ?? this.customActions,
onAttachmentTap: onAttachmentTap ?? this.onAttachmentTap,
userAvatarBuilder: userAvatarBuilder ?? this.userAvatarBuilder,
imageAttachmentThumbnailSize:
imageAttachmentThumbnailSize ?? this.imageAttachmentThumbnailSize,
imageAttachmentThumbnailResizeType: imageAttachmentThumbnailResizeType ??
this.imageAttachmentThumbnailResizeType,
imageAttachmentThumbnailCropType: imageAttachmentThumbnailCropType ??
this.imageAttachmentThumbnailCropType,
attachmentActionsModalBuilder:
attachmentActionsModalBuilder ?? this.attachmentActionsModalBuilder,
);
}