copyWith method
AttachmentActionsModal
copyWith({
- Key? key,
- Attachment? attachment,
- Message? message,
- VoidCallback? onShowMessage,
- VoidCallback? onReply,
- AttachmentDownloader? attachmentDownloader,
- bool? showReply,
- bool? showShowInChat,
- bool? showSave,
- bool? showDelete,
- List<
AttachmentAction> ? customActions,
Creates a copy of StreamMessageWidget with specified attributes overridden.
Implementation
AttachmentActionsModal copyWith({
Key? key,
Attachment? attachment,
Message? message,
VoidCallback? onShowMessage,
VoidCallback? onReply,
AttachmentDownloader? attachmentDownloader,
bool? showReply,
bool? showShowInChat,
bool? showSave,
bool? showDelete,
List<AttachmentAction>? customActions,
}) {
return AttachmentActionsModal(
key: key ?? this.key,
attachment: attachment ?? this.attachment,
message: message ?? this.message,
onShowMessage: onShowMessage ?? this.onShowMessage,
onReply: onReply ?? this.onReply,
attachmentDownloader: attachmentDownloader ?? this.attachmentDownloader,
showReply: showReply ?? this.showReply,
showShowInChat: showShowInChat ?? this.showShowInChat,
showSave: showSave ?? this.showSave,
showDelete: showDelete ?? this.showDelete,
customActions: customActions ?? this.customActions,
);
}