updateAttachment method

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

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

Throws an error if the feature layer doesn't support the attachment keywords.

Parameters:

  • attachmentInfo — Information describing the attachment.
  • name — The attachment name.
  • contentType — The type of the content.
  • data — The attachment data. If null, the existing data will be unchanged.
  • keywords — Attachment keywords. The attachment keywords can be accessed using Attachment.keywords.

Return Value: No value.