copyWith method

TemporaryAttachment copyWith({
  1. String? temporaryAttachmentId,
  2. String? fileName,
})

Implementation

TemporaryAttachment copyWith(
    {String? temporaryAttachmentId, String? fileName}) {
  return TemporaryAttachment(
    temporaryAttachmentId:
        temporaryAttachmentId ?? this.temporaryAttachmentId,
    fileName: fileName ?? this.fileName,
  );
}