copyWith method

StreamMessageWidget copyWith({
  1. Key? key,
  2. void onMentionTap(
    1. User
    )?,
  3. void onThreadTap(
    1. Message
    )?,
  4. void onReplyTap(
    1. Message
    )?,
  5. Future<void> onConfirmDeleteTap(
    1. Message
    )?,
  6. Widget editMessageInputBuilder(
    1. BuildContext,
    2. Message
    )?,
  7. Widget textBuilder(
    1. BuildContext,
    2. Message
    )?,
  8. Widget quotedMessageBuilder(
    1. BuildContext,
    2. Message
    )?,
  9. BottomRowBuilderWithDefaultWidget? bottomRowBuilderWithDefaultWidget,
  10. void onMessageActions(
    1. BuildContext,
    2. Message
    )?,
  11. Message? message,
  12. StreamMessageThemeData? messageTheme,
  13. bool? reverse,
  14. ShapeBorder? shape,
  15. ShapeBorder? attachmentShape,
  16. BorderSide? borderSide,
  17. BorderRadiusGeometry? borderRadiusGeometry,
  18. EdgeInsetsGeometry? padding,
  19. EdgeInsets? textPadding,
  20. EdgeInsetsGeometry? attachmentPadding,
  21. double? widthFactor,
  22. DisplayWidget? showUserAvatar,
  23. bool? showSendingIndicator,
  24. bool? showReactions,
  25. bool? allRead,
  26. bool? showThreadReplyIndicator,
  27. bool? showInChannelIndicator,
  28. void onUserAvatarTap(
    1. User
    )?,
  29. void onLinkTap(
    1. String
    )?,
  30. bool? showReactionBrowser,
  31. bool? showReactionPicker,
  32. List<Read>? readList,
  33. ShowMessageCallback? onShowMessage,
  34. bool? showUsername,
  35. bool? showTimestamp,
  36. bool? showReplyMessage,
  37. bool? showThreadReplyMessage,
  38. bool? showEditMessage,
  39. bool? showCopyMessage,
  40. bool? showDeleteMessage,
  41. bool? showResendMessage,
  42. bool? showFlagButton,
  43. bool? showPinButton,
  44. bool? showPinHighlight,
  45. bool? showMarkUnreadMessage,
  46. List<StreamAttachmentWidgetBuilder>? attachmentBuilders,
  47. bool? translateUserAvatar,
  48. OnQuotedMessageTap? onQuotedMessageTap,
  49. void onMessageTap(
    1. Message
    )?,
  50. OnReactionsTap? onReactionsTap,
  51. OnReactionsHover? onReactionsHover,
  52. List<StreamMessageAction>? customActions,
  53. void onAttachmentTap(
    1. Message message,
    2. Attachment attachment
    )?,
  54. Widget userAvatarBuilder(
    1. BuildContext,
    2. User
    )?,
  55. Size? imageAttachmentThumbnailSize,
  56. String? imageAttachmentThumbnailResizeType,
  57. String? imageAttachmentThumbnailCropType,
  58. 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,
  );
}