copyWith method

AttachmentActionsModal copyWith({
  1. Key? key,
  2. int? currentIndex,
  3. Message? message,
  4. VoidCallback? onShowMessage,
  5. AttachmentDownloader? imageDownloader,
  6. AttachmentDownloader? fileDownloader,
  7. bool? showReply,
  8. bool? showShowInChat,
  9. bool? showSave,
  10. bool? showDelete,
  11. List<AttachmentAction>? customActions,
})

Creates a copy of MessageWidget with specified attributes overridden.

Implementation

AttachmentActionsModal copyWith({
  Key? key,
  int? currentIndex,
  Message? message,
  VoidCallback? onShowMessage,
  AttachmentDownloader? imageDownloader,
  AttachmentDownloader? fileDownloader,
  bool? showReply,
  bool? showShowInChat,
  bool? showSave,
  bool? showDelete,
  List<AttachmentAction>? customActions,
}) =>
    AttachmentActionsModal(
      key: key ?? this.key,
      currentIndex: currentIndex ?? this.currentIndex,
      message: message ?? this.message,
      onShowMessage: onShowMessage ?? this.onShowMessage,
      imageDownloader: imageDownloader ?? this.imageDownloader,
      fileDownloader: fileDownloader ?? this.fileDownloader,
      showReply: showReply ?? this.showReply,
      showShowInChat: showShowInChat ?? this.showShowInChat,
      showSave: showSave ?? this.showSave,
      showDelete: showDelete ?? this.showDelete,
      customActions: customActions ?? this.customActions,
    );