updateAttachmentWithFile method

Future<void> updateAttachmentWithFile(
  1. Attachment attachmentInfo, {
  2. required String name,
  3. required String contentType,
  4. required Uri fileUri,
  5. String keywords = '',
})

Updates the given attachment, with keywords, of this feature.

One of the following error codes may be set:

Parameters:

  • attachmentInfo — Information describing the attachment.
  • name — The name of the Attachment.
  • contentType — The type of content.
  • fileUri — Path to a file that will be used for the attachment's content.
  • keywords — Attachment keywords. The attachment keywords can be accessed using Attachment.keywords.

Return Value: No value.